Skip to content

Commit

Permalink
On Release Publish
Browse files Browse the repository at this point in the history
  • Loading branch information
robbinjanssen committed Nov 10, 2021
1 parent 1e5e111 commit 91976b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yaml
Expand Up @@ -9,6 +9,8 @@ on:
pull_request:
branches:
- master
release:
types: [released]

jobs:
run-tests:
Expand Down Expand Up @@ -38,7 +40,7 @@ jobs:
repository_url: https://test.pypi.org/legacy/

- name: 🌏 Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags')
if: ${{ github.event_name == 'release' }}
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 91976b1

Please sign in to comment.