Merge pull request #272 from beltram/test/app-tester-send #299
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pages | |
on: | |
push: | |
branches: | |
- master | |
env: | |
CARGO_INCREMENTAL: 0 | |
CARGO_NET_RETRY: 10 | |
RUSTFLAGS: "-D warnings" | |
RUSTUP_MAX_RETRIES: 10 | |
SCCACHE_GHA_ENABLED: "true" | |
RUSTC_WRAPPER: "sccache" | |
jobs: | |
pages: | |
if: github.repository == 'redbadger/crux' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Run sccache-cache | |
uses: mozilla-actions/[email protected] | |
- name: Setup mdBook | |
uses: jontze/action-mdbook@v2 | |
with: | |
token: ${{secrets.GITHUB_TOKEN}} | |
use-linkcheck: true | |
use-admonish: true | |
- name: Build Documentation | |
run: cargo doc --all --no-deps | |
- name: Build book | |
working-directory: docs | |
run: mdbook build | |
- name: Move outputs | |
run: | | |
set -e | |
mkdir ./public | |
mv ./target/doc ./public/master_api_docs | |
mv ./docs/book/html/* ./public/ | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: gh-pages | |
publish_dir: ./public | |
force_orphan: true |