From a34b21160e5c21dfd2be04a7be88b56669e59345 Mon Sep 17 00:00:00 2001 From: Daniel Wood Date: Fri, 1 Sep 2023 15:29:39 +0100 Subject: [PATCH] only publish tags only publish on tags Update publish.yml Update publish.yml Update publish.yml Update publish.yml Update publish.yml --- .github/workflows/publish.yml | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f7baa09..9239997 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,15 +1,9 @@ name: Build and upload to PyPI on: - workflow_dispatch: - pull_request: push: - branches: - - main - - liblathe-nextgen - release: - types: - - published + tags: + - 'v*' jobs: build_wheels: @@ -51,11 +45,6 @@ jobs: url: https://pypi.org/p/liblathe permissions: id-token: write - # if: github.event_name == 'release' && github.event.action == 'published' - #github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') - #github.event_name == 'release' && github.event.action == 'published' - # or, alternatively, upload to PyPI on every tag starting with 'v' (remove on: release above to use this) - # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') steps: - uses: actions/download-artifact@v3 with: