2021-08-14 05:38:45 +00:00
|
|
|
name: Deploy docs to GitHub Pages
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
jobs:
|
2021-08-14 05:42:48 +00:00
|
|
|
rustdoc:
|
2021-08-14 05:38:45 +00:00
|
|
|
name: Deploy Documentation
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-08-14 05:55:27 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: sudo apt -y install libglib2.0-dev libgstreamer1.0-dev libnice-dev
|
2021-08-14 05:38:45 +00:00
|
|
|
- name: Check out
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Install Rust toolchain
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
profile: minimal
|
|
|
|
override: true
|
|
|
|
components: rustfmt, rust-src
|
|
|
|
- name: Build docs
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: doc
|
|
|
|
args: --all --no-deps
|
|
|
|
- name: Deploy docs to GitHub Pages
|
|
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
publish_dir: ./target/doc
|