Skip to content

Merge pull request #278 from redbadger/minor-releases #305

Merge pull request #278 from redbadger/minor-releases

Merge pull request #278 from redbadger/minor-releases #305

Workflow file for this run

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