Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tjorim authored Jan 17, 2025
1 parent c673f8d commit 92f2d0b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,13 @@ jobs:
poetry version $VERSION
poetry lock
- name: Checkout main branch
run: |
git checkout main
- name: Commit version bump to repository
- name: Push version bump to main
run: |
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
git add pyproject.toml poetry.lock
git commit -m "Bump version to $VERSION"
git push origin main
git push origin HEAD:main # Push from detached HEAD directly to main
- name: Build the package and publish to PyPI
env:
Expand Down

0 comments on commit 92f2d0b

Please sign in to comment.