File tree Expand file tree Collapse file tree 1 file changed +18
-27
lines changed Expand file tree Collapse file tree 1 file changed +18
-27
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- master
7
- - dev
8
7
9
8
jobs :
10
9
Build :
@@ -20,29 +19,21 @@ jobs:
20
19
cache : ' yarn'
21
20
cache-dependency-path : ' **/yarn.lock'
22
21
23
- - run : yarn install && yarn build
24
-
25
- - name : upload files
26
- uses : actions/upload-artifact@v2
27
- with :
28
- name : dist
29
- path : docs/.vuepress/
30
- retention-days : 1
31
- Deploy :
32
- needs : Build
33
- runs-on : ubuntu-latest
34
- steps :
35
- - name : checkout code
36
- uses : actions/checkout@v2
37
- - name : download build files
38
- uses : actions/download-artifact@v2
39
- with :
40
- name : dist
41
- path : docs/.vuepress/
42
- - name : deploy
43
- uses : JamesIves/github-pages-deploy-action@v4.2.3
44
- with :
45
- branch : dist
46
- folder : dist
47
- token : " ${{ secrets.AWESOME_CSS_TOKEN }}"
48
-
22
+ # 执行步骤的名称
23
+ - name : Compiling start
24
+ # 执行的具体脚本
25
+ run : echo Compiling start!
26
+ - run : git config --global user.email "2979986590@qq.com"
27
+ - run : git config --global user.name "webVueBlog"
28
+ # 执行安装跟打包命令
29
+ - run : yarn install && yarn build
30
+ - name : Deploy
31
+ # 这个是第三方提供的库,可以推送打包后的内容到指定分支
32
+ uses : peaceiris/actions-gh-pages@v3
33
+ with :
34
+ deploy_key : ${{ secrets.AWESOME_CSS_TOKEN }}
35
+ external_repository : ${{ github.repository }}
36
+ # 推送的分支
37
+ publish_branch : dist
38
+ # 推送的内容
39
+ publish_dir : docs/.vuepress/dist
You can’t perform that action at this time.
0 commit comments