Skip to content

Commit 16bad80

Browse files
committed
fix prefix stuff in gatsby
1 parent f6d2aa6 commit 16bad80

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/test-deploy.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ jobs:
5555
run: |
5656
npm run build
5757
npm run build:docs
58+
- name: Build preview docs
59+
run: |
60+
cd build/docs/gatsby
61+
npm install
62+
cp ../../../docs/config/gatsby-config.js gatsby-config-preview.js
63+
sed -i 's|pathPrefix: "/execution-apis"|pathPrefix: "/execution-apis/preview/PR${{ github.event.number }}"|g' gatsby-config-preview.js
64+
gatsby build --prefix-paths --config gatsby-config-preview.js
5865
- name: Cache docs build output
5966
uses: actions/cache@v4
6067
with:

0 commit comments

Comments
 (0)