-
Notifications
You must be signed in to change notification settings - Fork 226
32 lines (30 loc) · 955 Bytes
/
docs.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
name: Documentation
on:
push:
branches:
- main
jobs:
docs:
name: Build Documentation
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly-2023-12-28
components: rust-src
- name: Build documentation (arduino-hal)
run: cd arduino-hal/ && cargo doc --features arduino-uno
- name: Build documentation (atmega-hal)
run: cd mcu/atmega-hal/ && cargo doc --features atmega328p
- name: Build documentation (attiny-hal)
run: cd mcu/attiny-hal/ && cargo doc --features attiny85
- name: Deploy to GH-Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/doc
publish_branch: gh-pages
force_orphan: true