Files
pezkuwi-subxt/.github/workflows/docs.yml
T
Denis Pisarev 6cb0544001 CI: fix gh doc publishing (#567)
* CI: fix gh doc publishing

* CI: it needs nightly

* CI: add wasm32 target

* CI: return to running on master
2021-08-09 19:52:32 +02:00

41 lines
975 B
YAML

name: Publish Rust Docs
on:
push:
branches:
- master
jobs:
deploy-docs:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2.3.4
- name: Rust toolchains and versions
run: |
rustup toolchain install nightly --target wasm32-unknown-unknown
rustup show
rustup +nightly show
- name: Rust cache
uses: Swatinem/rust-cache@v1
- name: Build rustdocs
uses: actions-rs/cargo@v1
with:
command: doc
args: --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@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./target/doc