Skip to content

Commit 61d7d33

Browse files
committed
still restoring from wrong place
1 parent 80b49f1 commit 61d7d33

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/deploy-preview.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,21 @@ jobs:
3838
with:
3939
node-version: 20
4040

41-
- name: Create preview directory and restore build
42-
if: inputs.action == 'create'
43-
run: |
44-
mkdir -p gh-pages/preview/PR${{ inputs.pr_number }}
45-
46-
- name: Restore docs build output to preview directory
41+
- name: Restore docs build output
4742
if: inputs.action == 'create'
4843
uses: actions/cache@v4
4944
with:
50-
path: gh-pages/preview/PR${{ inputs.pr_number }}
45+
path: build/docs/gatsby/public
5146
key: docs-build-${{ inputs.commit_sha }}
5247
restore-keys: |
5348
docs-build-
5449
50+
- name: Create preview directory and copy files
51+
if: inputs.action == 'create'
52+
run: |
53+
mkdir -p gh-pages/preview/PR${{ inputs.pr_number }}
54+
cp -r build/docs/gatsby/public/* gh-pages/preview/PR${{ inputs.pr_number }}/
55+
5556
- name: Remove preview directory
5657
if: inputs.action == 'delete'
5758
run: |

0 commit comments

Comments
 (0)