-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 1.33 KB
/
blank.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: github pages
on:
push:
branches:
- master
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
# - run: npm install yarn -g
- run: yarn install vuepress
- run: yarn build
#发布到mybells.github.io/master
- name: Deploy wgf4242.github.io/text_del
uses: peaceiris/actions-gh-pages@v2
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
EXTERNAL_REPOSITORY: wgf4242/text_del #可以新建一个mybells.github.io仓库发布到master
PUBLISH_BRANCH: master
PUBLISH_DIR: docs/.vuepress/dist
with:
emptyCommits: false
# #发布到MyBlog/gh-pages 查看https://mybells.github.io/MyBlog/,需要修改base配置为MyBlog,修改图片路径
# - name: Deploy MyBlog/gh-pages
# uses: peaceiris/actions-gh-pages@v2
# env:
# ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
# PUBLISH_BRANCH: gh-pages #也可以在本项目MyBlog新建gh-pages分支,名字一定要是gh-pages这样github page设置才能识别到这个分支,其他名字识别不到。https://help.github.com/cn/github/working-with-github-pages/creating-a-github-pages-site#creating-your-site
# PUBLISH_DIR: docs/.vuepress/dist
# with:
# emptyCommits: false