Skip to content

Commit

Permalink
release both release and pre-releases tags to PyPI
Browse files Browse the repository at this point in the history
This is a change would allow releasing `0.4.1` into PyPI instead of just pre-releases
  • Loading branch information
OmarIthawi committed Jun 29, 2021
1 parent f830b6c commit 659126a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,9 @@ jobs:
pip install build
- name: Build package
run: python -m build
- name: 'Publish package (only for dev releases)'
# For now avoiding publishing production releases:
# - The setuptools guide: https://packaging.python.org/guides/distributing-packages-using-setuptools/#pre-release-versioning
- name: 'Publish package'
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
if: ${{ startsWith(github.ref, 'refs/tags') && contains(github.ref, '.dev') }}
if: ${{ startsWith(github.ref, 'refs/tags') }}

0 comments on commit 659126a

Please sign in to comment.