-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (28 loc) · 895 Bytes
/
main.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
36
37
name: Deploy Documentation Site
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Use Node.js # 配置Node环境
uses: actions/setup-node@v1 # 配置脚本来自 https://github.com/actions/setup-node
with:
node-version: "12.x"
- run: yarn install
- run: yarn workspace @axew/jugg build
- run: yarn workspace @axew/jugg-plugin-doc build
- run: yarn workspace @axew/jugg-plugin-vue build
- run: yarn install --force
- run: yarn doc:build
# https://github.com/JamesIves/github-pages-deploy-action
- name: Build and Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: siteDist