Skip to content

Commit 4ad2ae0

Browse files
fix: fixes the CDN deploy workflow to use main (#1246)
1 parent 6c85f4a commit 4ad2ae0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/deploy-cdn.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,17 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- name: Checkout repository
16+
- name: Checkout repository at tag
1717
uses: actions/checkout@v3
1818
with:
1919
ref: ${{ github.event.inputs.tag }}
2020

21+
# Fetch deploy script from main instead of using the one in the tag
22+
- name: Fetch deploy script from main
23+
run: |
24+
git fetch origin main
25+
git checkout origin/main -- scripts/deploy-cdn.sh
26+
2127
- name: Set up Node.js
2228
uses: actions/setup-node@v3
2329
with:
@@ -29,7 +35,7 @@ jobs:
2935
- name: Install Dependencies
3036
run: yarn install --immutable
3137

32-
- name: Run deploy script
38+
- name: Run deploy CDN script
3339
env:
3440
tag: ${{ github.event.inputs.tag }}
3541
run: bash ./scripts/deploy-cdn.sh

0 commit comments

Comments
 (0)