From dd03a7bc5b18f25d5d31df261d02dd38567d98f2 Mon Sep 17 00:00:00 2001 From: FriedrichFroebel Date: Sat, 16 Mar 2024 17:05:45 +0100 Subject: [PATCH] do not run and skip release on each regular commit --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4fa5050..07b8e0f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,12 +1,13 @@ name: Publish Python distribution -on: push +on: + release: + types: [published] jobs: build: name: Build distribution runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes steps: - uses: actions/checkout@v4 @@ -30,7 +31,6 @@ jobs: publish-to-pypi: name: Publish Python distribution to PyPI - if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes needs: - build runs-on: ubuntu-latest