Skip to content

Commit

Permalink
actions: only trigger pip upload on master and skip failures on testypi
Browse files Browse the repository at this point in the history
  • Loading branch information
Smlep committed Nov 21, 2020
1 parent 429e89e commit 7e13723
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI

on: push
on:
push:
branches:
- master
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
Expand Down Expand Up @@ -30,6 +33,7 @@ jobs:
with:
password: ${{ secrets.test_pypi_password }}
repository_url: https://test.pypi.org/legacy/
skip_existing: true
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
Expand Down

0 comments on commit 7e13723

Please sign in to comment.