Commit 21d4fdd 1 parent ba49719 commit 21d4fdd Copy full SHA for 21d4fdd
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11
11
jobs :
12
12
deploy :
13
13
runs-on : ubuntu-latest
14
+ environment : release
15
+ permissions :
16
+ id-token : write
14
17
steps :
15
18
- uses : actions/checkout@v3
16
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' }}
33
- with :
34
- password : ${{ secrets.PYPI_API_TOKEN }}
35
36
36
37
- name : Publish to Test PyPI
37
38
uses : pypa/gh-action-pypi-publish@release/v1
38
39
if : ${{ github.event_name != 'release' }}
39
40
with :
40
- password : ${{ secrets.TEST_PYPI_API_TOKEN }}
41
41
repository_url : https://test.pypi.org/legacy/
42
42
# Since we run this often, it's OK if that version already exists
43
43
skip_existing : true
You can’t perform that action at this time.
0 commit comments