File tree 2 files changed +29
-11
lines changed
2 files changed +29
-11
lines changed Original file line number Diff line number Diff line change 9
9
deploy :
10
10
runs-on : ubuntu-latest
11
11
steps :
12
- - uses : actions/checkout@master
13
- - uses : actions/setup-node@v1
12
+ - uses : actions/checkout@v2
13
+
14
+ - name : Setup Node 🔧
15
+ uses : actions/setup-node@v2
16
+ with :
17
+ node-version : ' 14'
18
+
19
+ - name : Get yarn cache 📤
20
+ id : yarn-cache
21
+ run : echo "::set-output name=dir::$(yarn cache dir)"
22
+
23
+ - name : Cache dependencies 📥
24
+ uses : actions/cache@v2
25
+ with :
26
+ path : ${{ steps.yarn-cache.outputs.dir }}
27
+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
28
+ restore-keys : |
29
+ ${{ runner.os }}-yarn-
30
+
31
+ - name : Install dependencies ⚙️
32
+ run : yarn install --frozen-lockfile
33
+
34
+ - name : Create production build 🔧
35
+ run : yarn build
36
+
37
+ - name : Deploy to gh-pages 🚀
38
+ uses : peaceiris/actions-gh-pages@v3
14
39
with :
15
- node-version : ' 14.x'
16
- - name : 🖇️ Installing dependencies
17
- run : yarn --frozen-lockfile
18
- - name : 🚀 Deploying to gh-pages
19
- run : yarn deploy
20
- env :
21
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40
+ github_token : ${{ secrets.GITHUB_TOKEN }}
41
+ publish_dir : ./dist
Original file line number Diff line number Diff line change 7
7
"dev" : " webpack serve --mode development --config webpack.common.ts" ,
8
8
"build" : " webpack --mode production --config webpack.common.ts" ,
9
9
"postbuild" : " ts-node ./scripts/postbuild.ts" ,
10
- "predeploy" : " yarn build" ,
11
- "deploy" : " gh-pages -d dist" ,
12
10
"prepare" : " husky install" ,
13
11
"serve" : " serve dist"
14
12
},
You can’t perform that action at this time.
0 commit comments