diff --git a/.github/workflows/python-publish.yaml b/.github/workflows/python-publish.yaml index 6605eb3..69f5490 100644 --- a/.github/workflows/python-publish.yaml +++ b/.github/workflows/python-publish.yaml @@ -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 "actions@github.com" + 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 }} \ No newline at end of file + password: ${{ secrets.PYPI_API_TOKEN }}