mirror of
https://github.com/Noratrieb/target-tier-docs-experiment.git
synced 2026-01-14 16:35:09 +01:00
24 lines
659 B
YAML
24 lines
659 B
YAML
name: Deploy mdBook
|
|
on: [push]
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Setup mdBook
|
|
uses: peaceiris/actions-mdbook@v1
|
|
with:
|
|
mdbook-version: '0.4.35'
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
- name: Build docs
|
|
run: |
|
|
export RUSTC=$(rustup which rustc)
|
|
cargo run
|
|
- run: |
|
|
cd targets && mdbook build
|
|
- name: Deploy
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
if: ${{ github.ref == 'refs/heads/master' }}
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./targets/book
|