File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ name: PyPI Publish
10
10
11
11
on :
12
12
workflow_call :
13
+ secrets :
14
+ API_TOKEN :
15
+ required : true
13
16
14
17
permissions : read-all
15
18
35
38
- name : Publish package distributions to PyPI (optional - testpypi)
36
39
uses : pypa/gh-action-pypi-publish@release/v1
37
40
with :
41
+ password : ${{ secrets.API_TOKEN }}
38
42
repository-url : https://upload.pypi.org/legacy/
Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ name: PyPI Publish
10
10
11
11
on :
12
12
workflow_call :
13
+ secrets :
14
+ API_TOKEN :
15
+ required : true
13
16
14
17
permissions : read-all
15
18
32
35
- name : Publish package distributions to PyPI (optional - testpypi)
33
36
uses : pypa/gh-action-pypi-publish@release/v1
34
37
with :
38
+ password : ${{ secrets.API_TOKEN }}
35
39
repository-url : https://test.pypi.org/legacy/
Original file line number Diff line number Diff line change 17
17
types : [created]
18
18
19
19
concurrency :
20
- group : CICD -${{ github.ref }}
20
+ group : ${{ github.workflow }} -${{ github.ref }}
21
21
cancel-in-progress : true
22
22
23
23
jobs :
@@ -101,6 +101,8 @@ jobs:
101
101
- CodeQL
102
102
name : Upload current version to Test PyPI
103
103
uses : ./.github/workflows/_pypi_test_publish.yaml
104
+ secrets :
105
+ API_TOKEN : ${{ secrets.TEST_PYPI_API_TOKEN }}
104
106
105
107
# # Upload the python-kraken-sdk to Production PyPI
106
108
# #
@@ -116,3 +118,5 @@ jobs:
116
118
- CodeQL
117
119
name : Upload the current release to PyPI
118
120
uses : ./.github/workflows/_pypi_publish.yaml
121
+ secrets :
122
+ API_TOKEN : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments