We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba49719 commit 21d4fddCopy full SHA for 21d4fdd
.github/workflows/release.yaml
@@ -11,6 +11,9 @@ on:
11
jobs:
12
deploy:
13
runs-on: ubuntu-latest
14
+ environment: release
15
+ permissions:
16
+ id-token: write
17
steps:
18
- uses: actions/checkout@v3
19
- name: Set up Python
@@ -30,14 +33,11 @@ jobs:
30
33
- name: Publish to PyPI
31
34
uses: pypa/gh-action-pypi-publish@release/v1
32
35
if: ${{ github.event_name == 'release' }}
- with:
- password: ${{ secrets.PYPI_API_TOKEN }}
36
37
- name: Publish to Test PyPI
38
39
if: ${{ github.event_name != 'release' }}
40
with:
- password: ${{ secrets.TEST_PYPI_API_TOKEN }}
41
repository_url: https://test.pypi.org/legacy/
42
# Since we run this often, it's OK if that version already exists
43
skip_existing: true
0 commit comments