File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff 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 : |
You can’t perform that action at this time.
0 commit comments