Skip to content

Commit

Permalink
Merge pull request #30 from maxspahn/fix-workflow
Browse files Browse the repository at this point in the history
fix[workflow]: Fixes workflow.
  • Loading branch information
maxspahn authored Jul 21, 2023
2 parents 383e38b + 1deef2f commit 4ddf8c3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
- uses: actions/checkout@v3
with:
ref: develop
- name: Fetches all branches
run: git fetch origin --unshallow
- name: Set up python
id: setup-python
uses: actions/setup-python@v2
Expand All @@ -43,7 +45,7 @@ jobs:
id: git-cliff
with:
config: cliff.toml
args: --verbose
args: origin/main ..HEAD
env:
OUTPUT: CHANGELOG.md
- name: Commit changelog
Expand All @@ -64,8 +66,7 @@ jobs:
run: git push origin release/v$VERSION
- name: Update main branch
run: |
git fetch origin --unshallow
git checkout -b main origin/main
git checkout -b main origin/main
git merge origin/release/v$VERSION
git push origin main
- name: Publish to pypi
Expand All @@ -75,7 +76,7 @@ jobs:
pypi_token: ${{ secrets.PYPI_TOKEN }}
- name: Update develop branch
run: |
git checkout -b develop origin/develop
git checkout develop
git merge origin/main
git push origin develop

0 comments on commit 4ddf8c3

Please sign in to comment.