Merge pull request #28466 from ProvableHQ/no-futures-in-structs #824
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Mainnet Crates Docs | |
on: | |
push: | |
branches: | |
- mainnet | |
jobs: | |
build-crates-docs: | |
name: Build Crates Docs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: true | |
ref: mainnet | |
- name: Install Rust Stable | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Set up rust-cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Build Cargo Docs | |
env: | |
RUSTDOCFLAGS: "--enable-index-page -Zunstable-options" | |
RUSTC_BOOTSTRAP: "1" | |
run: | | |
cargo doc --no-deps --document-private-items --workspace | |
rm -rf ./tests | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./target/doc/ |