File tree Expand file tree Collapse file tree 3 files changed +96
-0
lines changed
.history/.github/workflows Expand file tree Collapse file tree 3 files changed +96
-0
lines changed Original file line number Diff line number Diff line change 34
34
- name : Package build
35
35
working-directory : ./demo
36
36
run : npm run build
37
+
38
+ # Copy CNAME file
39
+ - name : Copy CNAME
40
+ run : cp ./demo/CNAME ./demo/src/.vuepress/dist
37
41
38
42
- name : Deploy 🚀
39
43
uses : JamesIves/github-pages-deploy-action@v4
Original file line number Diff line number Diff line change
1
+ name : Deploy
2
+ on :
3
+ workflow_dispatch :
4
+ inputs :
5
+ tags :
6
+ description : ' Documentation update'
7
+ default : ' Doc update'
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v3
13
+
14
+ - name : Set up Node.js
15
+ uses : actions/setup-node@v3
16
+ with :
17
+ node-version : 16.x
18
+
19
+ # Checout submodule
20
+ - name : Checkout submodules
21
+ run : git submodule update --init --remote --recursive
22
+
23
+ # Install
24
+ - name : Package update
25
+ working-directory : ./demo
26
+ run : npm ci
27
+
28
+ - name : Verify Node.js version
29
+ run : |
30
+ node -v
31
+ npm -v
32
+
33
+ # Build
34
+ - name : Package build
35
+ working-directory : ./demo
36
+ run : npm run build
37
+
38
+ - name : Deploy 🚀
39
+ uses : JamesIves/github-pages-deploy-action@v4
40
+ with :
41
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42
+ BRANCH : gh-pages # The branch the action should deploy to.
43
+ FOLDER : ./demo/src/.vuepress/dist # The folder the action should deploy.
44
+ CLEAN : true # Automatically remove deleted files from the deploy branch
Original file line number Diff line number Diff line change
1
+ name : Deploy
2
+ on :
3
+ workflow_dispatch :
4
+ inputs :
5
+ tags :
6
+ description : ' Documentation update'
7
+ default : ' Doc update'
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v3
13
+
14
+ - name : Set up Node.js
15
+ uses : actions/setup-node@v3
16
+ with :
17
+ node-version : 16.x
18
+
19
+ # Checout submodule
20
+ - name : Checkout submodules
21
+ run : git submodule update --init --remote --recursive
22
+
23
+ # Install
24
+ - name : Package update
25
+ working-directory : ./demo
26
+ run : npm ci
27
+
28
+ - name : Verify Node.js version
29
+ run : |
30
+ node -v
31
+ npm -v
32
+
33
+ # Build
34
+ - name : Package build
35
+ working-directory : ./demo
36
+ run : npm run build
37
+
38
+ # Copy CNAME file
39
+ - name : Copy CNAME
40
+ run : cp ./demo/CNAME ./demo/src/.vuepress/dist
41
+
42
+ - name : Deploy 🚀
43
+ uses : JamesIves/github-pages-deploy-action@v4
44
+ with :
45
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
46
+ BRANCH : gh-pages # The branch the action should deploy to.
47
+ FOLDER : ./demo/src/.vuepress/dist # The folder the action should deploy.
48
+ CLEAN : true # Automatically remove deleted files from the deploy branch
You can’t perform that action at this time.
0 commit comments