From 91976b1318b4edd906763cb219f7aeedec58c6af Mon Sep 17 00:00:00 2001 From: Robbin Janssen Date: Wed, 10 Nov 2021 09:47:37 +0000 Subject: [PATCH] On Release Publish --- .github/workflows/ci.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index af8d408..1c1bede 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,6 +9,8 @@ on: pull_request: branches: - master + release: + types: [released] jobs: run-tests: @@ -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 }}