Restrutured documentation to use mdbookshelf #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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/ |