Skip to content

Commit b6aaeef

Browse files
committed
fix deploy website workflow jobs order, add concurrency rule
1 parent 4ef7ff1 commit b6aaeef

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

.github/workflows/check-nightly.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
schedule:
1313
- cron: '15 4 * * *'
1414

15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
17+
cancel-in-progress: true
18+
1519
jobs:
1620
check-nightly:
1721
runs-on: ubuntu-latest

.github/workflows/deploy-website.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ on:
1313
branches:
1414
- main
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
1620
jobs:
1721
build-and-deploy:
1822
runs-on: ubuntu-latest
@@ -25,18 +29,20 @@ jobs:
2529
node-version: '22'
2630
cache: 'yarn'
2731

32+
- name: 🚚️ Install dependencies
33+
working-directory: website
34+
run: yarn install --frozen-lockfile
35+
2836
- name: ⬇️ Fetch the latest test results
2937
working-directory: website
3038
run: yarn data:fetch
3139
env:
32-
FIREBASE_APP_PROJECTNAME: ${{ secrets.firebase_app_projectname }}
33-
FIREBASE_APP_SERVICE_KEY: ${{ secrets.firebase_app_service_key }}
40+
FIREBASE_APP_PROJECTNAME: ${{ secrets.FIREBASE_APP_PROJECTNAME }}
41+
FIREBASE_APP_SERVICE_KEY: ${{ secrets.FIREBASE_APP_SERVICE_KEY }}
3442

35-
- name: 📦️ Install & build app
43+
- name: 📦️ Build website app
3644
working-directory: website
37-
run: |
38-
yarn install --frozen-lockfile
39-
yarn build
45+
run: yarn build
4046

4147
- name: 🚀 Deploy to GitHub Pages
4248
uses: peaceiris/actions-gh-pages@v4

0 commit comments

Comments
 (0)