Skip to content

Commit 566dfa5

Browse files
committed
✨ Update release workflow to commit and push changes with version tagging and force push to main
1 parent 470eb9a commit 566dfa5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,15 @@ jobs:
2828
- name: Bump version
2929
run: uv run hatch version $RELEASE_VERSION
3030

31-
- name: Commit version
31+
- name: Commit and push changes
3232
run: |
3333
git config user.name "${GITHUB_ACTOR}"
3434
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
3535
git add .
3636
git commit -m "🚀 Release $RELEASE_VERSION"
3737
git tag -f $RELEASE_VERSION
38-
git push origin main
38+
git push origin $RELEASE_VERSION --force
39+
git push origin HEAD:main
3940
4041
publish-docs:
4142
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)