Skip to content

Commit 2aca5b7

Browse files
chore(CI): re-enable astro build in CI (#4878)
1 parent 0e824f5 commit 2aca5b7

File tree

4 files changed

+55
-4
lines changed

4 files changed

+55
-4
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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

.github/workflows-src/partials/build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
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

.github/workflows-src/pr-preview.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
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
@@ -18,3 +18,17 @@ jobs:
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%

.github/workflows/pr-preview.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### WARNING -- this file was generated by generate-workflows
1+
### WARNING -- this file was generated by generate-workflows.js
22
name: pr-preview
33
on: pull_request_target
44
jobs:
@@ -21,7 +21,6 @@ jobs:
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
@@ -32,3 +31,29 @@ jobs:
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

0 commit comments

Comments
 (0)