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:
98
98
--outdir dist/
99
99
100
100
- 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
103
103
with :
104
104
skip_existing : true
105
105
password : ${{ secrets.TEST_PYPI_API_TOKEN }}
106
106
repository_url : https://test.pypi.org/legacy/
107
107
108
108
- name : Publish distribution to PyPI
109
109
if : startsWith(github.ref, 'refs/tags')
110
- uses : pypa/gh-action-pypi-publish@master
110
+ uses : pypa/gh-action-pypi-publish@v1
111
111
with :
112
112
skip_existing : true
113
113
password : ${{ secrets.PYPI_API_TOKEN }}
@@ -116,7 +116,7 @@ jobs:
116
116
uses : softprops/action-gh-release@v1
117
117
if : ${{ !github.event.schedule && startsWith(github.ref, 'refs/tags') }}
118
118
with :
119
- draft : true
119
+ draft : false
120
120
generate_release_notes : true
121
121
files : |
122
122
dist/*.whl
You can’t perform that action at this time.
0 commit comments