Skip to content

Commit

Permalink
Update GitHub Actions workflow to trigger prod deploys and build vers…
Browse files Browse the repository at this point in the history
…ion.json correctly (#1841)

Co-authored-by: William Durand <[email protected]>
  • Loading branch information
pattersonbl2 and willdurand authored Apr 24, 2024
1 parent f2b8509 commit 4edd173
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/gcp_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
Expand All @@ -33,8 +35,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 1
fetch-tags: true
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/gcp_deploy_prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy to GCS Prod
on:
push:
tags:
- "20[0-9][0-9].[0-9][0-9].[0-9][0-9](-[0-9]+)?"
- "20*"
workflow_dispatch:

jobs:
Expand All @@ -13,8 +13,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 1
fetch-tags: true
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
Expand All @@ -37,6 +36,9 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3

Expand Down

0 comments on commit 4edd173

Please sign in to comment.