Skip to content

Commit

Permalink
Further fine tuning to CD
Browse files Browse the repository at this point in the history
P.S. it’ll publish any push to TestPyPI which is useful for providing test builds to your alpha users as well as making sure that your release pipeline remains healthy!

Signed-off-by: Dario Cambié <[email protected]>
  • Loading branch information
Dario Cambié committed Oct 4, 2021
1 parent 001d2ca commit 233a96c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Publish Python 🐍 distributions 📦 to PyPI
on: push
on:
push:
branches: [main]

jobs:
build-n-publish:
Expand All @@ -23,8 +25,9 @@ jobs:
user: dcambie
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
skip_existing: true
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
if: startsWith(github.ref, 'refs/tags/releases/')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
Expand Down

0 comments on commit 233a96c

Please sign in to comment.