2020-11-09 15:18:13 +03:00
|
|
|
name: rustdoc
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2022-09-09 16:34:19 +03:00
|
|
|
- "master"
|
|
|
|
|
2020-11-09 15:18:13 +03:00
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_INCREMENTAL: 0
|
|
|
|
CARGO_NET_RETRY: 10
|
|
|
|
RUSTUP_MAX_RETRIES: 10
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
rustdoc:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2023-10-23 13:59:02 +03:00
|
|
|
uses: actions/checkout@v4
|
2020-11-09 15:18:13 +03:00
|
|
|
|
2022-12-26 19:28:18 +02:00
|
|
|
- name: Setup Rust toolchain
|
2023-11-21 13:44:07 +02:00
|
|
|
uses: dsherret/rust-toolchain-file@v1
|
2020-11-09 15:18:13 +03:00
|
|
|
|
|
|
|
- name: Build Documentation
|
2022-09-09 16:34:19 +03:00
|
|
|
env:
|
|
|
|
RUSTDOCFLAGS: "--enable-index-page -Zunstable-options"
|
2022-12-26 19:28:18 +02:00
|
|
|
run: cargo doc --all --no-deps
|
2020-11-09 15:18:13 +03:00
|
|
|
|
|
|
|
- name: Deploy Docs
|
2023-08-04 14:49:56 +03:00
|
|
|
uses: peaceiris/actions-gh-pages@v3.9.3
|
2020-11-09 15:18:13 +03:00
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
publish_branch: gh-pages
|
|
|
|
publish_dir: ./target/doc
|
|
|
|
force_orphan: true
|
2021-05-10 14:25:34 +03:00
|
|
|
cname: air.fluence.dev
|