Skip to content

Commit 9ceb69a

Browse files
committed
clean up docs check build workflow
1 parent 719f398 commit 9ceb69a

1 file changed

Lines changed: 2 additions & 15 deletions

File tree

.github/workflows/check.build.docs.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ on:
88

99
workflow_dispatch:
1010

11-
permissions:
12-
contents: read
13-
pages: write
14-
id-token: write
15-
1611
concurrency:
1712
group: "pages"
1813
cancel-in-progress: false
@@ -61,14 +56,11 @@ jobs:
6156
with:
6257
node-version: "20"
6358

64-
- name: Setup Pages
65-
uses: actions/configure-pages@v5
66-
6759
- name: Restore cache
6860
uses: actions/cache@v4
6961
with:
7062
path: |
71-
.next/cache
63+
docs/website-src/.next/cache
7264
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
7365
restore-keys: |
7466
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
@@ -81,12 +73,7 @@ jobs:
8173
run: ${{ steps.detect-package-manager.outputs.runner }} next build
8274
working-directory: docs/website-src
8375

84-
- name: Copy built files to docs
85-
run: |
86-
rm -rf docs/website/*
87-
cp -r docs/website-src/out docs/website/
88-
8976
- name: Upload artifact
9077
uses: actions/upload-pages-artifact@v3
9178
with:
92-
path: docs/website
79+
path: docs/website-src/out

0 commit comments

Comments
 (0)