File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -98,16 +98,16 @@ jobs:
9898 --outdir dist/
9999
100100 - name : Publish distribution to Test PyPI
101- if : github.ref == 'refs/heads/master'
102- uses : pypa/gh-action-pypi-publish@master
101+ if : github.ref == 'refs/heads/master' && env.TEST_PYPI_API_TOKEN != null
102+ uses : pypa/gh-action-pypi-publish@v1
103103 with :
104104 skip_existing : true
105105 password : ${{ secrets.TEST_PYPI_API_TOKEN }}
106106 repository_url : https://test.pypi.org/legacy/
107107
108108 - name : Publish distribution to PyPI
109109 if : startsWith(github.ref, 'refs/tags')
110- uses : pypa/gh-action-pypi-publish@master
110+ uses : pypa/gh-action-pypi-publish@v1
111111 with :
112112 skip_existing : true
113113 password : ${{ secrets.PYPI_API_TOKEN }}
@@ -116,7 +116,7 @@ jobs:
116116 uses : softprops/action-gh-release@v1
117117 if : ${{ !github.event.schedule && startsWith(github.ref, 'refs/tags') }}
118118 with :
119- draft : true
119+ draft : false
120120 generate_release_notes : true
121121 files : |
122122 dist/*.whl
You can’t perform that action at this time.
0 commit comments