From e7ecb3200c424c78c38a22508c302ad495f1afdc Mon Sep 17 00:00:00 2001 From: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com> Date: Tue, 30 Aug 2022 09:02:04 -0500 Subject: [PATCH] Build on every push but only publish on tags --- .github/workflows/release.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 91123855a6..ce4cfc90b0 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,6 +1,7 @@ name: Release on: + push: create: tags: - v* @@ -267,7 +268,7 @@ jobs: - musllinux - musllinux-cross - pypy - if: "startsWith(github.ref, 'refs/tags/')" + if: "github.ref == 'refs/heads/main' && startsWith(github.ref, 'refs/tags/')" steps: - uses: actions/download-artifact@v2 with: