File tree Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy Pages
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - core
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+ defaults :
12
+ run :
13
+ working-directory : docs/site
14
+
15
+ steps :
16
+ - name : Checkout
17
+ uses : actions/checkout@v2
18
+ with :
19
+ persist-credentials : false
20
+
21
+ - name : Install dependencies
22
+ run : |
23
+ npm install
24
+
25
+ - name : Build
26
+ run : |
27
+ npm run build
28
+
29
+ - name : Upload folder
30
+ uses : actions/upload-artifact@v2
31
+ with :
32
+ name : public
33
+ path : public
34
+
35
+ deploy-github-pages :
36
+ needs : build
37
+ runs-on : ubuntu-latest
38
+ steps :
39
+ - name : Checkout
40
+ uses : actions/checkout@v2
41
+ with :
42
+ persist-credentials : false
43
+
44
+ - name : Download folder
45
+ uses : actions/download-artifact@v2
46
+ with :
47
+ name : public
48
+ path : public
49
+
50
+ - name : File list
51
+ run : |
52
+ ls -la && ls -la public
53
+
54
+ - name : Deploy
55
+
56
+ with :
57
+ token : ${{ secrets.GITHUB_TOKEN }}
58
+ BRANCH : gh-pages
59
+ FOLDER : public
60
+ CLEAN : true
You can’t perform that action at this time.
0 commit comments