Skip to content

Commit 8a4ac02

Browse files
authored
Update schedule.yml
1 parent d7aa4ce commit 8a4ac02

File tree

1 file changed

+18
-27
lines changed

1 file changed

+18
-27
lines changed

.github/workflows/schedule.yml

Lines changed: 18 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- master
7-
- dev
87

98
jobs:
109
Build:
@@ -20,29 +19,21 @@ jobs:
2019
cache: 'yarn'
2120
cache-dependency-path: '**/yarn.lock'
2221

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

0 commit comments

Comments
 (0)