forked from rcore-os/rCore-Tutorial
-
Notifications
You must be signed in to change notification settings - Fork 2
29 lines (27 loc) · 713 Bytes
/
deploy.yml
File metadata and controls
29 lines (27 loc) · 713 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
name: GitHub Pages
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v2.1.0
with:
node-version: '10.21.0'
- name: Build GitBook
run: |
npm install gitbook-cli -g
gitbook install
gitbook build
- name: Push to remote repo
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
external_repository: rcore-os/rCore-Tutorial-deploy
publish_branch: master
publish_dir: ./_book
commit_message: "[Auto-Deploy] "