Skip to content

Commit

Permalink
Only upload on release, switch to real PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
karlb committed Aug 20, 2021
1 parent a9c14d8 commit 67b719d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: release

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

jobs:
upload-to-pypi:
Expand All @@ -20,8 +22,7 @@ jobs:
--wheel
--outdir dist/
.
- name: Publish distribution to Test PyPI
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 67b719d

Please sign in to comment.