Skip to content

Merge pull request #178 from Abstracted-Labs/francisco-cargo_lock #6

Merge pull request #178 from Abstracted-Labs/francisco-cargo_lock

Merge pull request #178 from Abstracted-Labs/francisco-cargo_lock #6

name: Build Rust Docs
on:
push:
branches:
- main
jobs:
rustdoc:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install deps
run: sudo apt -y install protobuf-compiler
- name: Change directory to pallets
run: cd ./pallets
- name: Install & display rust toolchain
run: rustup show
- name: Check targets are installed correctly
run: rustup target list --installed
- name: Build Documentation
run: RUSTDOCFLAGS="--enable-index-page -Zunstable-options" cargo doc --no-deps --document-private-items
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./target/doc