diff --git a/.github/workflows/publish-to-gcr-ghcr.yml b/.github/workflows/publish-to-gcr-ghcr.yml index 13fc510ec..9fded8560 100644 --- a/.github/workflows/publish-to-gcr-ghcr.yml +++ b/.github/workflows/publish-to-gcr-ghcr.yml @@ -1,10 +1,13 @@ name: Push to GCR/GHCR GitHub Action -on: push +on: + push: + tags: + - '*' # Push events to every tag not containing / + jobs: build-and-push-to-gcr-service-account: name: Build & push to GCR/GHCR - if: startsWith(github.ref, 'refs/tags/') # only publish to registry on tag pushes runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 31a085998..7703ec95a 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -1,6 +1,9 @@ name: Publish Python 🐍 distribution 📦 to PyPI -on: push +on: + push: + tags: + - '*' # Push events to every tag not containing / jobs: build: @@ -36,7 +39,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