File tree Expand file tree Collapse file tree 1 file changed +13
-30
lines changed Expand file tree Collapse file tree 1 file changed +13
-30
lines changed Original file line number Diff line number Diff line change 1
-
2
- name : Deploy Docs
1
+ name : Deploy VuePress
3
2
4
3
on :
5
4
push :
6
5
branches :
7
- # make sure this is the branch you are using
8
6
- master
9
7
10
- permissions :
11
- contents : write
12
-
13
8
jobs :
14
- deploy-gh-pages :
9
+ build-and-deploy :
15
10
runs-on : ubuntu-latest
16
11
steps :
17
- - name : Checkout
18
- uses : actions/checkout@v3
19
- with :
20
- fetch-depth : 0
21
- # if your docs needs submodules, uncomment the following line
22
- # submodules: true
23
-
24
-
12
+ - name : Checkout code
13
+ uses : actions/checkout@v2
25
14
26
- - name : Setup Node.js
15
+ - name : Set up Node.js
27
16
uses : actions/setup-node@v3
28
17
with :
29
18
node-version : 20
30
- cache : npm
31
19
32
- - name : Install Deps
33
- run : npm ci
20
+ - name : Install dependencies
21
+ run : npm install
34
22
35
- - name : Build Docs
36
- env :
37
- NODE_OPTIONS : --max_old_space_size=8192
38
- run : |-
39
- npm run docs:build
40
- > docs/.vuepress/dist/.nojekyll
23
+ - name : Build VuePress
24
+ run : npm run docs:build
41
25
42
- - name : Deploy Docs
43
- uses : JamesIves/github-pages-deploy-action@v4
26
+ - name : Deploy to GitHub Pages
27
+ uses : peaceiris/actions-gh-pages@v3
44
28
with :
45
- # This is the branch where the docs are deployed to
46
- branch : gh-pages
47
- folder : docs/.vuepress/dist
29
+ github_token : ${{ secrets.GITHUB_TOKEN }}
30
+ publish_dir : docs/.vuepress/dist
You can’t perform that action at this time.
0 commit comments