From 2031a1318e4c8750760f5c626b225e1e950503e3 Mon Sep 17 00:00:00 2001 From: Caleb Grant Date: Mon, 16 Dec 2024 13:37:39 -0800 Subject: [PATCH] set build and publish jobs to run only on tag push Signed-off-by: Caleb Grant --- .github/workflows/ci-cd.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 7479d37..ebb2bfc 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -5,6 +5,8 @@ on: push: branches: - main + tags: + - '**' workflow_dispatch: env: @@ -71,6 +73,7 @@ jobs: name: Build distribution 📦 runs-on: ubuntu-latest needs: [tests] + if: startsWith(github.ref, 'refs/tags/') steps: - uses: actions/checkout@v4 - name: Set up Python