Skip to content

Commit

Permalink
✨ Update release workflow to commit and push changes with version tag…
Browse files Browse the repository at this point in the history
…ging and force push to main
  • Loading branch information
grelinfo committed Nov 26, 2024
1 parent 470eb9a commit 566dfa5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@ jobs:
- name: Bump version
run: uv run hatch version $RELEASE_VERSION

- name: Commit version
- name: Commit and push changes
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git add .
git commit -m "🚀 Release $RELEASE_VERSION"
git tag -f $RELEASE_VERSION
git push origin main
git push origin $RELEASE_VERSION --force
git push origin HEAD:main
publish-docs:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 566dfa5

Please sign in to comment.