forked from OpenDevicePartnership/documentation
-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (38 loc) · 1.13 KB
/
buildbook.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
# This workflow makes sure we can build all the books successfully
permissions:
contents: read
on:
push:
branches: [main,bookshelf]
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
name: build-book
jobs:
buildbook:
runs-on: ubuntu-latest
name: ${{ matrix.target }}
strategy:
matrix:
target: [thumbv8m.main-none-eabihf]
steps:
- uses: actions/checkout@v4
- name: Install mdbook
run: |
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.12/mdbook-v0.4.12-x86_64-unknown-linux-gnu.tar.gz | tar -xz -C /usr/local/bin
- name: Sync and build bookshelf
run: |
git clone https://github.com/philgweber/mdbookshelf.git
cd mdbookshelf
cargo build --release
- name: Build our ODP bookshelf
run: |
./mdbookshelf/target/release/mdbookshelf build
cp ./media/* build
- name: Upload output folder
uses: actions/upload-artifact@v4
with:
name: Web Folder
path: build/