-
Notifications
You must be signed in to change notification settings - Fork 324
42 lines (36 loc) · 1.01 KB
/
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
38
39
40
41
42
name: OpenCore little for GitBook deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Setup Node.js Env
uses: actions/setup-node@v1
with:
node-version: '10.x'
- name: Setup GitBook Env
run:
npm install gitbook-cli -g
- name: Setup Calibre Env
run:
sudo apt-get update -y && sudo apt-get install calibre --fix-missing
- name: Build
run: |
gitbook build . ./docs
- name: Commit
run: |
git add docs
git config --local user.email "[email protected]"
git config --local user.name "athlonreg"
git commit -m "Update by GitHub Actions" -a
- name: Push
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}