Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
docs: optimize docs build (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
TriplEight authored Aug 10, 2021
1 parent 6cb0544 commit 0c39e49
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: Publish Rust Docs

on:
push:
branches:
- master
pull_request:
# FIXME: debug
# push:
# branches:
# - master

jobs:
deploy-docs:
Expand All @@ -14,20 +16,14 @@ jobs:
- 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 versions
run: rustup show

- name: Rust cache
uses: Swatinem/rust-cache@v1

- name: Build rustdocs
uses: actions-rs/cargo@v1
with:
command: doc
args: --all --no-deps
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
Expand Down

0 comments on commit 0c39e49

Please sign in to comment.