-
Notifications
You must be signed in to change notification settings - Fork 17
44 lines (37 loc) · 1015 Bytes
/
mipbook.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
43
44
name: Build mipBook
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
env:
MIPBOOK_VERSION: 0.4.43
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
pull-requests: read
steps:
- name: Checkout new repo
uses: actions/checkout@v3
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y jq curl
- name: Install mipbook
run: |
mkdir mipbook
curl -Lf https://github.com/rust-lang/mdBook/releases/download/v${{ env.MIPBOOK_VERSION }}/mdbook-v${{ env.MIPBOOK_VERSION }}-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mipbook
echo `pwd`/mipbook >> $GITHUB_PATH
- name: Generate Book
run: ./generate_book.sh
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book