-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (36 loc) · 973 Bytes
/
nodejs.yml
File metadata and controls
46 lines (36 loc) · 973 Bytes
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
38
39
40
41
42
43
44
45
46
name: Node-CI
on:
push:
branches:
- dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js 10.x
uses: actions/setup-node@v1
with:
node-version: 10.x
- uses: szenius/set-timezone@v1.0
with:
timezoneLinux: "Asia/Shanghai"
- name: Check Time
run: date
- name: npm install and setup env
run: |
npm install gitbook-cli -g # install gitbook
gitbook fetch 3.2.3 # fetch final stable version
gitbook install # add any requested plugins in book.json
- name: gitbook build
run: |
gitbook build . docs/ # build to docs path
# cp CNAME docs/ # 移除 CNAME
cp README.md docs/
- name: Deploy to GitHub page
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/
force_orphan: true