Fix rustdoc deployment to GitHub Pages (#22)

This commit is contained in:
folex 2020-11-10 13:56:52 +03:00 committed by GitHub
parent 67f3a88f72
commit b0d706503a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ on:
env: env:
CARGO_INCREMENTAL: 0 CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10 CARGO_NET_RETRY: 10
RUSTFLAGS: "-D warnings -W unreachable-pub" RUSTFLAGS: ""
RUSTUP_MAX_RETRIES: 10 RUSTUP_MAX_RETRIES: 10
jobs: jobs:
@ -22,7 +22,7 @@ jobs:
- name: Install Rust toolchain - name: Install Rust toolchain
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
toolchain: stable toolchain: nightly
profile: minimal profile: minimal
override: true override: true
components: rustfmt, rust-src components: rustfmt, rust-src
@ -31,9 +31,10 @@ jobs:
run: cargo doc --all --no-deps run: cargo doc --all --no-deps
- name: Deploy Docs - name: Deploy Docs
uses: peaceiris/actions-gh-pages@364c31d33bb99327c77b3a5438a83a357a6729ad # v3.4.0 uses: peaceiris/actions-gh-pages@v3.7.3
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages publish_branch: gh-pages
publish_dir: ./target/doc publish_dir: ./target/doc
force_orphan: true force_orphan: true
cname: fluence.network