We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d70c5af commit b5b6bc8Copy full SHA for b5b6bc8
.github/workflows/deploy-preview.yaml
@@ -26,12 +26,12 @@ jobs:
26
name: Deploy Preview
27
runs-on: ubuntu-latest
28
steps:
29
- - name: Checkout repository
+ - name: Checkout PR branch for cache restore
30
+ if: inputs.action == 'create'
31
uses: actions/checkout@v4
32
with:
33
token: ${{ secrets.TOKEN }}
- ref: gh-pages
34
- path: gh-pages
+ ref: ${{ inputs.commit_sha }}
35
36
- name: Setup Node.js
37
uses: actions/setup-node@v4
@@ -49,6 +49,13 @@ jobs:
49
restore-keys: |
50
docs-build-
51
52
+ - name: Checkout gh-pages branch
53
+ uses: actions/checkout@v4
54
+ with:
55
+ token: ${{ secrets.TOKEN }}
56
+ ref: gh-pages
57
+ path: gh-pages
58
+
59
- name: Create preview directory and copy files
60
if: inputs.action == 'create'
61
run: |
0 commit comments