gst-meet/.github/workflows/rustdoc.yml

31 lines
814 B
YAML
Raw Permalink Normal View History

2021-08-14 05:38:45 +00:00
name: Deploy docs to GitHub Pages
on:
push:
branches:
- master
jobs:
rustdoc:
2021-08-14 05:38:45 +00:00
name: Deploy Documentation
runs-on: ubuntu-latest
steps:
- 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