Skip to content

Commit

Permalink
Upload to Test PyPi only on manual trigger (#1159)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikonst committed Feb 21, 2023
1 parent a30e608 commit 9903c69
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Release
on:
release:
types: [published]
# For non-release, we want to exercise (a) building, (b) uploading to test.pypi.org
push:
branches: [master]
pull_request:
workflow_dispatch:

jobs:
deploy:
Expand Down Expand Up @@ -35,9 +35,7 @@ jobs:

- name: Publish to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: ${{ github.event_name != 'release' }}
if: ${{ github.event_name == 'workflow_dispatch' }}
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
# Since we run this often, it's OK if that version already exists
skip_existing: true

0 comments on commit 9903c69

Please sign in to comment.