From ca49d86ed8229db2eeec64ae898a184bd03e2e23 Mon Sep 17 00:00:00 2001 From: Marek Otahal Date: Mon, 1 Jun 2020 15:32:51 +0200 Subject: [PATCH] example: publish to PyPI only on release tag --- examples/github-minimal.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/github-minimal.yml b/examples/github-minimal.yml index dde844e3..5e7f6b3b 100644 --- a/examples/github-minimal.yml +++ b/examples/github-minimal.yml @@ -37,6 +37,7 @@ jobs: path: ./wheelhouse - name: Publish to PyPI + if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@master #see https://github.com/pypa/gh-action-pypi-publish for setup with: user: __token__