Skip to content

Commit

Permalink
Update python-publish.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
tiadams authored Dec 21, 2023
1 parent 766508f commit a4e1762
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/python-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,19 @@ jobs:
run: |
VERSION=${{ github.event.release.tag_name }}
sed -i "s/version='.*'/version='${VERSION}'/" setup.py
- name: Commit and push changes
- name: Commit & push package version
run: |
VERSION=${{ github.event.release.tag_name }}
git config user.email "[email protected]"
git config user.name "GitHub Actions"
git add setup.py
git commit -m "Update version to ${VERSION}"
git push
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit a4e1762

Please sign in to comment.