Skip to content

Commit 4574d99

Browse files
committed
fix: update deploy.yaml trigger to be upon release publish, instead of merges to the release branch
1 parent b4f6c62 commit 4574d99

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

‎.github/workflows/deploy.yml‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
name: Deploy to production
22
on:
3-
workflow_run:
4-
workflows: ["Test"]
5-
branches:
6-
- release
3+
release:
74
types:
8-
- completed
5+
- published
96
env:
107
PROJECT_ID: ${{ secrets.GKE_PROJECT }}
118
GKE_CLUSTER: p5-gke-cluster
@@ -21,7 +18,7 @@ jobs:
2118
- name: Check out the repo
2219
uses: actions/checkout@v3
2320
with:
24-
ref: release
21+
ref: ${{ github.event.release.tag_name }}
2522
- name: Set up Docker Buildx
2623
uses: docker/setup-buildx-action@v2
2724
with:

0 commit comments

Comments
 (0)