Skip to content

Commit

Permalink
[CI] restrict upload to on publish
Browse files Browse the repository at this point in the history
  • Loading branch information
1technophile committed Mar 6, 2022
1 parent 1c1bb28 commit 96a4091
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/auto_publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Publish distributions to PyPI
on:
push:
branches:
- "development"
release:
types: [published]

jobs:
build-n-publish:
name: Build and publish distributions to PyPI
Expand All @@ -18,7 +18,6 @@ jobs:
run: |
python setup.py sdist
- 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 96a4091

Please sign in to comment.