Commit 3aec5540 authored by Stefan Lankes's avatar Stefan Lankes
Browse files

add workflow to build documentation

parent 1b9cd969
name: Build docs
on:
push:
branches:
- master
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v1
with:
submodules: true
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: rust-src
override: true
- name: Generate documentation
uses: actions-rs/cargo@v1
with:
command: doc
args: --workspace -Z build-std=std,core,alloc,panic_abort --target x86_64-unknown-hermit
- name: Deploy documentation
if: success()
uses: crazy-max/ghaction-github-pages@v1
with:
target_branch: gh-pages
build_dir: target/x86_64-unknown-hermit/doc
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment