We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 399d417 commit 04f35a8Copy full SHA for 04f35a8
.github/workflows/ci.yml
@@ -58,9 +58,13 @@ jobs:
58
run: |
59
poetry build
60
61
- # Only push to PyPi when a tag is created starting with 'v'
+ pypi-publish:
62
+ needs: build
63
+ environment: release
64
+ permissions:
65
+ # IMPORTANT: this permission is mandatory for trusted publishing
66
+ # https://docs.pypi.org/trusted-publishers/using-a-publisher/
67
+ id-token: write
68
+ steps:
69
- name: Push to PyPi
- if: startsWith(github.ref, 'refs/tags/v')
- run: |
- poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
- poetry publish
70
+ uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments