We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eebc2ff commit b252182Copy full SHA for b252182
.github/workflows/deploy.yml
@@ -1,9 +1,8 @@
1
name: deploy
2
3
on:
4
- push:
5
- tags:
6
- - 'v*'
+ release:
+ types: [published]
7
8
jobs:
9
deploy:
@@ -24,13 +23,13 @@ jobs:
24
23
run: |
25
pipenv run python setup.py sdist bdist_wheel
26
- name: Publish distribution 📦 to Test PyPI
27
- if: contains(github.ref, 'beta')
+ if: github.event.release.prerelease == true
28
uses: pypa/gh-action-pypi-publish@master
29
with:
30
password: ${{ secrets.TEST_PYPI_PASSWORD }}
31
repository_url: https://test.pypi.org/legacy/
32
- name: Publish distribution 📦 to PyPI
33
- if: contains(github.ref, 'beta') != true
+ if: github.event.release.prerelease != true
34
35
36
password: ${{ secrets.PYPI_PASSWORD }}
0 commit comments