mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-23 06:08:01 +00:00
220bc559f0
* Pin checkout to v3.1.0 and update srtool-actions to v0.6.0 * Pin GHA ruby/setup-ruby to 1.118.0 * Update and pin GHA deps * Pin all external GHA deps
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
name: Publish Rust Docs
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
deploy-docs:
|
|
name: Deploy docs
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Install tooling
|
|
run: |
|
|
sudo apt-get install -y protobuf-compiler
|
|
protoc --version
|
|
|
|
- name: Checkout repository
|
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
|
|
|
|
- name: Rust versions
|
|
run: rustup show
|
|
|
|
- name: Rust cache
|
|
uses: Swatinem/rust-cache@6720f05bc48b77f96918929a9019fb2203ff71f8 # v2.0.0
|
|
|
|
- name: Build rustdocs
|
|
run: SKIP_WASM_BUILD=1 cargo doc --all --no-deps
|
|
|
|
- name: Make index.html
|
|
run: echo "<meta http-equiv=refresh content=0;url=cumulus_client_collator/index.html>" > ./target/doc/index.html
|
|
|
|
- name: Deploy documentation
|
|
uses: peaceiris/actions-gh-pages@068dc23d9710f1ba62e86896f84735d869951305 # v3.8.0
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_branch: gh-pages
|
|
publish_dir: ./target/doc
|