File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,10 +2,12 @@ name: deploy
22
33on :
44 push :
5- branches : [ master ]
5+ tags :
6+ - ' *'
67
78jobs :
89 deploy :
10+ if : github.ref == 'refs/heads/master'
911 name : Package and publish to PyPi 📦
1012 runs-on : ubuntu-latest
1113 steps :
@@ -23,13 +25,13 @@ jobs:
2325 run : |
2426 pipenv run python setup.py sdist bdist_wheel
2527 - name : Publish distribution 📦 to Test PyPI
26- if : contains(github.ref, 'test ')
28+ if : contains(github.ref, 'refs/tags/*-beta ')
2729 uses : pypa/gh-action-pypi-publish@master
2830 with :
2931 password : ${{ secrets.TEST_PYPI_PASSWORD }}
3032 repository_url : https://test.pypi.org/legacy/
3133 # - name: Publish distribution 📦 to PyPI
32- # if: contains(github.ref, 'release' )
34+ # if: !( contains(github.ref, 'refs/tags/*-beta') )
3335 # uses: pypa/gh-action-pypi-publish@master
3436 # with:
3537 # password: ${{ secrets.PYPI_PASSWORD }}
You can’t perform that action at this time.
0 commit comments