We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5460c02 commit 45cc60fCopy full SHA for 45cc60f
.github/workflows/publish_on_release.yml
@@ -8,6 +8,9 @@ jobs:
8
build-n-publish:
9
name: Build and publish Python 🐍 distributions 📦 to PyPI
10
runs-on: ubuntu-latest
11
+ environment: pypi
12
+ permissions:
13
+ id-token: write
14
15
steps:
16
- name: Check out from Git
@@ -37,10 +40,7 @@ jobs:
37
40
- name: Publish distribution 📦 to Test PyPI
38
41
uses: pypa/gh-action-pypi-publish@release/v1
39
42
with:
- password: ${{ secrets.TOKEN_TEST_PYPI }}
43
repository-url: https://test.pypi.org/legacy/
44
- name: Publish distribution 📦 to PyPI
45
if: startsWith(github.ref, 'refs/tags')
46
- with:
- password: ${{ secrets.PYPI_API_TOKEN }}
0 commit comments