Skip to content

Commit 8b5486f

Browse files
committed
Automatically upload playground compiler to CDN on version tag builds
1 parent ad8e982 commit 8b5486f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,13 @@ jobs:
226226
if: matrix.os == 'macos-arm'
227227
run: node playground/playground_test.js
228228

229+
- name: Upload playground compiler to CDN
230+
if: ${{ matrix.os == 'macos-arm' && startsWith(github.ref, 'refs/tags/v') }}
231+
env:
232+
KEYCDN_USER: ${{ secrets.KEYCDN_USER }}
233+
KEYCDN_PASSWORD: ${{ secrets.KEYCDN_PASSWORD }}
234+
run: sh playground/upload_bundle.sh
235+
229236
- name: Prepare artifact upload
230237
run: node .github/workflows/get_artifact_info.js
231238

0 commit comments

Comments
 (0)