Skip to content

Commit 22310b3

Browse files
committed
ci: update release task
1 parent 4a06123 commit 22310b3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)