Skip to content

Commit

Permalink
ci: fix cicd target branch name and fix release workflow (#439)
Browse files Browse the repository at this point in the history
## what
- Fix: correct the name of the target branch for the develop deployment
cicd
- Fix: return the release workflow trigger for pushes to develop and
main branches
  • Loading branch information
anayeaye authored Oct 14, 2024
2 parents ad5d5e5 + abceb02 commit c3919f7
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ permissions:
on:
push:
branches:
- dev
- develop

jobs:
define-environment:
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release Workflow

permissions:
id-token: write
contents: read

on:
push:
branches:
- develop
- main

jobs:
release:
runs-on: ubuntu-latest
concurrency: release
permissions:
id-token: write
contents: write

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Python Semantic Release
uses: python-semantic-release/python-semantic-release@master
with:
changelog: "false"
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c3919f7

Please sign in to comment.