From b56cda391e6e3142de3b1db6f6830c65789feb4f Mon Sep 17 00:00:00 2001 From: Chayim Date: Tue, 10 Jan 2023 12:44:11 +0200 Subject: [PATCH] Supporting tagged releases and dispatch when Github actions refuse to run (#146) --- .github/workflows/pypi-publish.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pypi-publish.yaml b/.github/workflows/pypi-publish.yaml index 6432bba..be5f289 100644 --- a/.github/workflows/pypi-publish.yaml +++ b/.github/workflows/pypi-publish.yaml @@ -1,8 +1,11 @@ name: Publish tag to Pypi on: - release: - types: [published] + workflow_dispatch: + + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+' permissions: contents: read # to fetch code (actions/checkout) @@ -98,4 +101,4 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file + password: ${{ secrets.PYPI_API_TOKEN }}