File tree Expand file tree Collapse file tree 4 files changed +55
-4
lines changed
Expand file tree Collapse file tree 4 files changed +55
-4
lines changed Original file line number Diff line number Diff line change 1+ - uses : actions/setup-node@v4
2+ with :
3+ node-version : 22
4+ - run : corepack enable
5+ - run : yarn install --immutable
6+ - uses : actions/cache@v4
7+ id : site-cache
8+ name : Load rspack cache
9+ with :
10+ path : " packages/documentation-site/.cache"
11+ key : ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
12+ - run : yarn build:doc-core
13+ name : Build astro docs
Original file line number Diff line number Diff line change 33 node-version : 22
44- run : corepack enable
55- run : yarn install --immutable
6- # v5 build
76- uses : actions/cache@v4
87 id : site-cache
98 name : Load rspack cache
Original file line number Diff line number Diff line change 77 SURGE_LOGIN : ${{ secrets.SURGE_LOGIN }}
88 SURGE_TOKEN : ${{ secrets.SURGE_TOKEN }}
99 GH_PR_TOKEN : ${{ secrets.GH_PR_TOKEN }}
10- GH_PR_NUM : ${{ github.event.number }}
10+ GH_PR_NUM : ${{ github.event.number }}
1111 steps :
1212 - uses : actions/checkout@v2
1313 # Yes, we really want to checkout the PR
1818 %build%
1919 - run : node .github/upload-preview.js build/patternfly-org/site site
2020 name : Upload docs
21+ build-upload-astro :
22+ runs-on : ubuntu-latest
23+ env :
24+ SURGE_LOGIN : ${{ secrets.SURGE_LOGIN }}
25+ SURGE_TOKEN : ${{ secrets.SURGE_TOKEN }}
26+ GH_PR_TOKEN : ${{ secrets.GH_PR_TOKEN }}
27+ GH_PR_NUM : ${{ github.event.number }}
28+ steps :
29+ - uses : actions/checkout@v2
30+ - run : |
31+ git fetch origin pull/$GH_PR_NUM/head:tmp
32+ git checkout tmp
33+ # Injected by generate-workflows.js
34+ %build-astro%
Original file line number Diff line number Diff line change 1- # ## WARNING -- this file was generated by generate-workflows
1+ # ## WARNING -- this file was generated by generate-workflows.js
22name : pr-preview
33on : pull_request_target
44jobs :
2121 node-version : 22
2222 - run : corepack enable
2323 - run : yarn install --immutable
24- # build
2524 - uses : actions/cache@v4
2625 id : site-cache
2726 name : Load rspack cache
3231 name : Build docs
3332 - run : node .github/upload-preview.js build/patternfly-org/site site
3433 name : Upload docs
34+ build-upload-astro :
35+ runs-on : ubuntu-latest
36+ env :
37+ SURGE_LOGIN : ${{ secrets.SURGE_LOGIN }}
38+ SURGE_TOKEN : ${{ secrets.SURGE_TOKEN }}
39+ GH_PR_TOKEN : ${{ secrets.GH_PR_TOKEN }}
40+ GH_PR_NUM : ${{ github.event.number }}
41+ steps :
42+ - uses : actions/checkout@v2
43+ - run : |
44+ git fetch origin pull/$GH_PR_NUM/head:tmp
45+ git checkout tmp
46+ # Injected by generate-workflows.js
47+ - uses : actions/setup-node@v4
48+ with :
49+ node-version : 22
50+ - run : corepack enable
51+ - run : yarn install --immutable
52+ - uses : actions/cache@v4
53+ id : site-cache
54+ name : Load rspack cache
55+ with :
56+ path : " packages/documentation-site/.cache"
57+ key : ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
58+ - run : yarn build:doc-core
59+ name : Build astro docs
You can’t perform that action at this time.
0 commit comments