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