32 lines
827 B
YAML
32 lines
827 B
YAML
name: gh-pages
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
deploy:
|
|
name: GH-pages documentation
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install toolchain
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: nightly
|
|
override: true
|
|
- name: doc (rand)
|
|
env:
|
|
RUSTDOCFLAGS: --cfg doc_cfg
|
|
# --all builds all crates, but with default features for other crates (okay in this case)
|
|
run: |
|
|
cargo doc --all --features nightly,serde1,getrandom,small_rng
|
|
cp utils/redirect.html target/doc/index.html
|
|
- name: Deploy
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./target/doc
|