Skip to content

Commit caf601e

Browse files
committed
Fix deploy-preview steps
1 parent 7cbd0b9 commit caf601e

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.github/workflows/deploy-preview.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,12 @@ jobs:
3333
uses: actions/setup-node@v4
3434
with:
3535
node-version: 20
36-
cache: npm
37-
38-
- name: Install dependencies
39-
run: npm install --frozen-lockfile
4036

4137
- name: Restore docs build output
4238
if: inputs.action == 'create'
4339
uses: actions/cache@v4
4440
with:
45-
path: docs/public
41+
path: build/docs/gatsby/public
4642
key: docs-build-${{ inputs.commit_sha }}
4743
restore-keys: |
4844
docs-build-
@@ -51,7 +47,7 @@ jobs:
5147
if: inputs.action == 'create'
5248
run: |
5349
mkdir -p gh-pages/preview/PR${{ inputs.pr_number }}
54-
cp -r docs/public/* gh-pages/preview/PR${{ inputs.pr_number }}/
50+
cp -r build/docs/gatsby/public/* gh-pages/preview/PR${{ inputs.pr_number }}/
5551
5652
- name: Remove preview directory
5753
if: inputs.action == 'delete'

.github/workflows/test-deploy.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ jobs:
3232
deploy:
3333
name: Deploy
3434
runs-on: ubuntu-latest
35-
if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
35+
needs: test-deploy
36+
if: github.event_name == 'pull_request'
3637
strategy:
3738
matrix:
3839
node-version: [24]
@@ -54,7 +55,7 @@ jobs:
5455
- name: Cache docs build output
5556
uses: actions/cache@v4
5657
with:
57-
path: docs/public
58+
path: build/docs/gatsby/public
5859
key: docs-build-${{ github.sha }}
5960
restore-keys: |
6061
docs-build-

0 commit comments

Comments
 (0)