77 # Review gh actions docs if you want to further define triggers, paths, etc
88 # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
99
10- concurrency :
11- group : pages
12- cancel-in-progress : false
13-
1410jobs :
1511 build :
1612 name : Build Docusaurus
1713 runs-on : ubuntu-latest
18- timeout-minutes : 60
1914 steps :
2015 - uses : nschloe/action-cached-lfs-checkout@v1
2116 with :
2217 fetch-depth : 0
23- filter : blob:none
2418 submodules : true
2519 exclude : external/**
2620
@@ -32,40 +26,18 @@ jobs:
3226 - name : Install dependencies
3327 run : yarn install --frozen-lockfile
3428
35- # Rspack persistent cache
36- - name : Restore bundler cache
37- uses : actions/cache@v4
38- with :
39- path : node_modules/.cache
40- key : docusaurus-${{ runner.os }}-${{ hashFiles('yarn.lock', 'docusaurus.config.js') }}-${{ github.sha }}
41- restore-keys : |
42- docusaurus-${{ runner.os }}-${{ hashFiles('yarn.lock', 'docusaurus.config.js') }}-
43- docusaurus-${{ runner.os }}-
44-
4529 - name : Preprocess API
4630 run : yarn preprocess-api
4731
4832 - name : Sync Crowdin
49- timeout-minutes : 15
5033 env :
5134 CROWDIN_PROJECT_ID : ${{ secrets.CROWDIN_PROJECT_ID }}
5235 CROWDIN_PERSONAL_TOKEN : ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
5336 run : yarn crowdin:sync
5437
5538 - name : Build website
56- timeout-minutes : 40
57- env :
58- # Bound SSG worker memory
59- DOCUSAURUS_SSG_WORKER_THREAD_RECYCLER_MAX_MEMORY : 800000000
6039 run : yarn build
6140
62- - name : Report resource usage
63- if : always()
64- run : |
65- echo "--- memory ---"; free -h
66- echo "--- disk ---"; df -h /
67- echo "--- rspack cache ---"; du -sh node_modules/.cache 2>/dev/null || echo "none"
68-
6941 - name : Upload Build Artifact
7042 uses : actions/upload-pages-artifact@v3
7143 with :
0 commit comments