File tree 3 files changed +8
-27
lines changed
3 files changed +8
-27
lines changed Original file line number Diff line number Diff line change 5
5
branches : ["main"]
6
6
workflow_dispatch :
7
7
8
- permissions :
9
- contents : read
10
- pages : write
11
- id-token : write
12
-
13
- concurrency :
14
- group : " pages"
15
- cancel-in-progress : false
16
-
17
8
jobs :
18
- build :
9
+ build-and-deploy :
19
10
runs-on : ubuntu-latest
20
- strategy :
21
- matrix :
22
- node-version : [20]
23
11
steps :
24
12
- uses : actions/checkout@v4
25
13
26
14
- uses : pnpm/action-setup@v2
27
15
with :
28
16
version : 8
29
17
30
- - name : Use Node.js ${{ matrix.node-version }}
18
+ - name : Setup Node.js
31
19
uses : actions/setup-node@v3
32
20
with :
33
- node-version : ${{ matrix.node-version }}
21
+ node-version : 20
34
22
cache : " pnpm"
35
23
36
24
- name : Install dependencies
40
28
run : pnpm build
41
29
42
30
- name : Upload artifact
43
- uses : actions/upload-pages-artifact@v1
31
+ uses : peaceiris/actions-gh-pages@v3
44
32
with :
45
- path : " out"
46
- deploy :
47
- environment :
48
- name : github-pages
49
- url : ${{ steps.deployment.outputs.page_url }}
50
- runs-on : ubuntu-latest
51
- needs : build
52
- steps :
53
- - name : Deploy to GitHub Pages
54
- id : deployment
55
- uses : actions/deploy-pages@v3
33
+ github_token : ${{ secrets.GITHUB_TOKEN }}
34
+ publish_dir : out
Original file line number Diff line number Diff line change @@ -4,7 +4,9 @@ const withNextra = require('nextra')({
4
4
} ) ;
5
5
6
6
module . exports = withNextra ( {
7
+ basePath : process . env . GITHUB_ACTIONS && '/CommandReference' ,
7
8
output : 'export' ,
9
+ trailingSlash : true ,
8
10
images : {
9
11
unoptimized : true
10
12
}
You can’t perform that action at this time.
0 commit comments