Skip to content

Merge pull request #121 from DefGuard/dev #81

Merge pull request #121 from DefGuard/dev

Merge pull request #121 from DefGuard/dev #81

Workflow file for this run

name: rustdoc Github Pages
on:
push:
branches:
- main
env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUSTFLAGS: "-D warnings -W unreachable-pub"
RUSTUP_MAX_RETRIES: 10
jobs:
rustdoc:
runs-on: [self-hosted, Linux]
container:
image: rust:1
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Rust toolchain
run: rustup update --no-self-update stable
- name: Install protoc
run: apt-get update && apt-get -y install protobuf-compiler
- name: Build Docs
run: cargo doc --all --no-deps
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./target/doc
force_orphan: true