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 e22f8a2 commit a9a3504Copy full SHA for a9a3504
.github/workflows/publish_to_pypi.yaml
@@ -7,6 +7,9 @@ on:
7
jobs:
8
publish:
9
runs-on: ubuntu-latest
10
+ environment: publish
11
+ permissions:
12
+ id-token: write
13
14
steps:
15
- uses: actions/checkout@v3
@@ -19,5 +22,3 @@ jobs:
19
22
20
23
- name: Publish to PyPI
21
24
uses: pypa/gh-action-pypi-publish@release/v1
- with:
- password: ${{ secrets.PYPI_API_TOKEN }}
.github/workflows/publish_to_test_pypi.yaml
@@ -14,6 +14,9 @@ on:
16
17
+ environment: publish-testpypi
18
@@ -36,5 +39,4 @@ jobs:
36
39
- name: Publish to TestPyPI
37
40
38
41
with:
- password: ${{ secrets.TEST_PYPI_API_TOKEN }}
42
repository_url: https://test.pypi.org/legacy/
0 commit comments