From 0ded20fcb7b625aa3b57cb7c62bff0138f5472be Mon Sep 17 00:00:00 2001 From: Alex Yang Date: Tue, 29 Aug 2023 05:27:14 -0500 Subject: [PATCH] ci: only deploy in the canary version --- .github/workflows/deploy.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7c85dbd268..582a453288 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,6 +4,8 @@ on: push: branches: - master + tags: + - 'v[0-9]+.[0-9]+.[0-9]+-canary.[0-9]+' workflow_dispatch: inputs: flavor: @@ -169,6 +171,7 @@ jobs: deploy: name: Deploy to cluster + if: ${{ github.event_name == 'workflow_dispatch' || github.ref_type == 'tag' }} environment: ${{ github.event.inputs.flavor }} permissions: contents: 'write'