File tree 3 files changed +5
-13
lines changed
3 files changed +5
-13
lines changed Original file line number Diff line number Diff line change 13
13
enable_dev_dependencies : 0
14
14
runner : ubuntu-latest
15
15
secrets :
16
- PYPI_USER : ${{ secrets.PYPI_USERNAME }}
17
- PYPI_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
18
16
PYPI_HOST : pypi.org
Original file line number Diff line number Diff line change 16
16
enable_dev_dependencies : 1
17
17
runner : ubuntu-latest
18
18
secrets :
19
- PYPI_USER : ${{ secrets.TEST_PYPI_USERNAME }}
20
- PYPI_PASSWORD : ${{ secrets.TEST_PYPI_PASSWORD }}
21
19
PYPI_HOST : test.pypi.org
Original file line number Diff line number Diff line change 18
18
required : true
19
19
20
20
env :
21
- PYPI_USER : ${{ secrets.PYPI_USER }}
22
- PYPI_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
23
21
PYPI_HOST : ${{ secrets.PYPI_HOST }}
24
22
ENABLE_DEV_DEPENDENCIES : ${{ inputs.enable_dev_dependencies }}
25
23
@@ -71,13 +69,11 @@ jobs:
71
69
path : dist
72
70
73
71
- name : Publish SDK package to pypi
74
- run : |
75
- if [[ $PYPI_HOST = "test.pypi.org" ]]; then
76
- twine upload -r testpypi dist/* -u $PYPI_USER -p $PYPI_PASSWORD
77
- else
78
- twine upload dist/* -u $PYPI_USER -p $PYPI_PASSWORD
79
- fi
80
-
72
+ uses : pypa/gh-action-pypi-publish@67339c736fd9354cd4f8cb0b744f2b82a74b5c70 # v1.12.3
73
+ if : ${{ secrets.PYPI_HOST == 'test.pypi.org' }}
74
+ with :
75
+ repository-url : https://test.pypi.org/
76
+ verbose : true
81
77
82
78
- name : Clean up dist directory if it was created
83
79
if : ${{ always() }}
You can’t perform that action at this time.
0 commit comments