mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-25 05:55:42 +00:00
docs: optimize docs build (#568)
This commit is contained in:
@@ -1,9 +1,11 @@
|
|||||||
name: Publish Rust Docs
|
name: Publish Rust Docs
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
pull_request:
|
||||||
branches:
|
# FIXME: debug
|
||||||
- master
|
# push:
|
||||||
|
# branches:
|
||||||
|
# - master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy-docs:
|
deploy-docs:
|
||||||
@@ -14,20 +16,14 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2.3.4
|
uses: actions/checkout@v2.3.4
|
||||||
|
|
||||||
- name: Rust toolchains and versions
|
- name: Rust versions
|
||||||
run: |
|
run: rustup show
|
||||||
rustup toolchain install nightly --target wasm32-unknown-unknown
|
|
||||||
rustup show
|
|
||||||
rustup +nightly show
|
|
||||||
|
|
||||||
- name: Rust cache
|
- name: Rust cache
|
||||||
uses: Swatinem/rust-cache@v1
|
uses: Swatinem/rust-cache@v1
|
||||||
|
|
||||||
- name: Build rustdocs
|
- name: Build rustdocs
|
||||||
uses: actions-rs/cargo@v1
|
run: SKIP_WASM_BUILD=1 cargo doc --all --no-deps
|
||||||
with:
|
|
||||||
command: doc
|
|
||||||
args: --all --no-deps
|
|
||||||
|
|
||||||
- name: Make index.html
|
- name: Make index.html
|
||||||
run: echo "<meta http-equiv=refresh content=0;url=cumulus_client_collator/index.html>" > ./target/doc/index.html
|
run: echo "<meta http-equiv=refresh content=0;url=cumulus_client_collator/index.html>" > ./target/doc/index.html
|
||||||
|
|||||||
Reference in New Issue
Block a user