Skip to content

Commit d4a0c92

Browse files
committed
lets try one more time
1 parent 61d7d33 commit d4a0c92

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/deploy-preview.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ jobs:
4242
if: inputs.action == 'create'
4343
uses: actions/cache@v4
4444
with:
45-
path: build/docs/gatsby/public
45+
path: |
46+
build/docs/gatsby/public
47+
build/docs/gatsby/public-preview
4648
key: docs-build-${{ inputs.commit_sha }}
4749
restore-keys: |
4850
docs-build-
@@ -51,7 +53,7 @@ jobs:
5153
if: inputs.action == 'create'
5254
run: |
5355
mkdir -p gh-pages/preview/PR${{ inputs.pr_number }}
54-
cp -r build/docs/gatsby/public/* gh-pages/preview/PR${{ inputs.pr_number }}/
56+
cp -r build/docs/gatsby/public-preview/* gh-pages/preview/PR${{ inputs.pr_number }}/
5557
5658
- name: Remove preview directory
5759
if: inputs.action == 'delete'

.github/workflows/test-deploy.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,16 @@ jobs:
6767
npx gatsby build --prefix-paths
6868
# Restore original config
6969
cp gatsby-config-original.js gatsby-config.js
70+
# Move preview build to separate directory
71+
mv public public-preview
72+
# Rebuild main site
73+
npx gatsby build --prefix-paths
7074
- name: Cache docs build output
7175
uses: actions/cache@v4
7276
with:
73-
path: build/docs/gatsby/public
77+
path: |
78+
build/docs/gatsby/public
79+
build/docs/gatsby/public-preview
7480
key: docs-build-${{ github.sha }}
7581
restore-keys: |
7682
docs-build-

0 commit comments

Comments
 (0)