@@ -82,25 +82,25 @@ jobs:
8282 echo "match=false" >> $GITHUB_OUTPUT
8383 fi
8484
85- # Prod, 'rc' and 'beta ' tags go to PyPI; 'alpha', all other tags and untagged commits go to TestPyPI
85+ # Prod, 'rc', 'beta', and 'alpha ' tags go to PyPI; all other tags and untagged commits go to TestPyPI
8686 # 2.10.0 (prod tag, official release commit) --> PyPI
8787 # 2.10.0b1 (beta tag, used on main) --> PyPI
88- # 2.10.0.rc0 (rc tag, used on release branches before release is cut) --> PyPI
89- # 2.10.0.a0 (alpha tag, used on feature branches) --> TestPyPI
88+ # 2.10.0rc0 (rc tag, used on release branches before release is cut) --> PyPI
89+ # 2.10.0a0 (alpha tag, used on feature branches) --> PyPI (as pre-release)
9090 # 2.10.0.dev0 (no match, arbitrary dev tag) --> TestPyPI
9191 # no tag, just a vanilla commit/merge pushed to `main` --> TestPyPI
9292
93- # Upload to TestPyPI if it is not a release (prod), rc or beta tag
93+ # Upload to TestPyPI if it is not a release (prod), rc, beta, or alpha tag
9494 - name : Upload to test pypi
95- if : steps.check-prod-tag.outputs.match == 'false' && steps.check-rc-tag.outputs.match == 'false' && steps.check-beta-tag.outputs.match == 'false'
95+ if : steps.check-prod-tag.outputs.match == 'false' && steps.check-rc-tag.outputs.match == 'false' && steps.check-beta-tag.outputs.match == 'false' && steps.check-alpha-tag.outputs.match == 'false'
9696 run : twine upload --verbose --repository testpypi dist/*
9797 env :
9898 TWINE_USERNAME : __token__
9999 TWINE_PASSWORD : ${{ secrets.TEST_PYPI_TOKEN }}
100100
101- # If the tag matches either a release, rc or a beta tag, allow publishing to PyPi :
101+ # If the tag matches a release, rc, beta, or alpha tag, allow publishing to PyPI :
102102 - name : Upload to pypi
103- if : steps.check-prod-tag.outputs.match == 'true' || steps.check-rc-tag.outputs.match == 'true' || steps.check-beta-tag.outputs.match == 'true'
103+ if : steps.check-prod-tag.outputs.match == 'true' || steps.check-rc-tag.outputs.match == 'true' || steps.check-beta-tag.outputs.match == 'true' || steps.check-alpha-tag.outputs.match == 'true'
104104 run : twine upload --verbose dist/*
105105 env :
106106 TWINE_USERNAME : __token__
0 commit comments