Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows-src/partials/build-astro.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
- uses: actions/setup-node@v4
with:
node-version: 22
- run: corepack enable
- run: yarn install --immutable
- uses: actions/cache@v4
id: site-cache
name: Load rspack cache
with:
path: "packages/documentation-site/.cache"
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- run: yarn build:doc-core
name: Build astro docs
1 change: 0 additions & 1 deletion .github/workflows-src/partials/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
node-version: 22
- run: corepack enable
- run: yarn install --immutable
# v5 build
- uses: actions/cache@v4
id: site-cache
name: Load rspack cache
Expand Down
16 changes: 15 additions & 1 deletion .github/workflows-src/pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
SURGE_LOGIN: ${{ secrets.SURGE_LOGIN }}
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
GH_PR_TOKEN: ${{ secrets.GH_PR_TOKEN }}
GH_PR_NUM: ${{ github.event.number }}
GH_PR_NUM: ${{ github.event.number }}
steps:
- uses: actions/checkout@v2
# Yes, we really want to checkout the PR
Expand All @@ -18,3 +18,17 @@ jobs:
%build%
- run: node .github/upload-preview.js build/patternfly-org/site site
name: Upload docs
build-upload-astro:
runs-on: ubuntu-latest
env:
SURGE_LOGIN: ${{ secrets.SURGE_LOGIN }}
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
GH_PR_TOKEN: ${{ secrets.GH_PR_TOKEN }}
GH_PR_NUM: ${{ github.event.number }}
steps:
- uses: actions/checkout@v2
- run: |
git fetch origin pull/$GH_PR_NUM/head:tmp
git checkout tmp
# Injected by generate-workflows.js
%build-astro%
29 changes: 27 additions & 2 deletions .github/workflows/pr-preview.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### WARNING -- this file was generated by generate-workflows
### WARNING -- this file was generated by generate-workflows.js
name: pr-preview
on: pull_request_target
jobs:
Expand All @@ -21,7 +21,6 @@ jobs:
node-version: 22
- run: corepack enable
- run: yarn install --immutable
# build
- uses: actions/cache@v4
id: site-cache
name: Load rspack cache
Expand All @@ -32,3 +31,29 @@ jobs:
name: Build docs
- run: node .github/upload-preview.js build/patternfly-org/site site
name: Upload docs
build-upload-astro:
runs-on: ubuntu-latest
env:
SURGE_LOGIN: ${{ secrets.SURGE_LOGIN }}
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
GH_PR_TOKEN: ${{ secrets.GH_PR_TOKEN }}
GH_PR_NUM: ${{ github.event.number }}
steps:
- uses: actions/checkout@v2
- run: |
git fetch origin pull/$GH_PR_NUM/head:tmp
git checkout tmp
# Injected by generate-workflows.js
- uses: actions/setup-node@v4
with:
node-version: 22
- run: corepack enable
- run: yarn install --immutable
- uses: actions/cache@v4
id: site-cache
name: Load rspack cache
with:
path: "packages/documentation-site/.cache"
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- run: yarn build:doc-core
name: Build astro docs