Skip to content

Commit

Permalink
Change to publish on release only
Browse files Browse the repository at this point in the history
  • Loading branch information
mj-will committed Feb 18, 2021
1 parent d3d22bc commit d64e80a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Publish Python 🐍 distributions 📦 to PyPI

on:
push:
branches: [ main ]
release:
types: [published]

jobs:
build-n-publish:
Expand All @@ -29,7 +29,6 @@ jobs:
--outdir dist/
.
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit d64e80a

Please sign in to comment.