We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e6eb26 commit 2ddfc67Copy full SHA for 2ddfc67
1 file changed
.github/workflows/build.yml
@@ -92,6 +92,9 @@ jobs:
92
93
python:
94
runs-on: ubuntu-latest
95
+ environment: pypi
96
+ permissions:
97
+ id-token: write
98
steps:
99
100
- name: Checkout repository
@@ -113,11 +116,7 @@ jobs:
113
116
run: python -m build
114
117
115
118
- name: Publish Python package
- if: github.event_name == 'release'
- env:
- PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
119
- PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
120
- run: twine upload --disable-progress-bar -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} dist/*
+ uses: pypa/gh-action-pypi-publish@release/v1
121
122
docker:
123
0 commit comments