mirror of
https://github.com/Sunscreen-tech/Sunscreen.git
synced 2026-04-19 03:00:06 -04:00
38 lines
845 B
YAML
38 lines
845 B
YAML
name: docs-deployment
|
|
|
|
on:
|
|
push:
|
|
branches: [ docs ]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
concurrency: docs-production
|
|
|
|
jobs:
|
|
build-docs:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: 'recursive'
|
|
- uses: actions/cache@v3
|
|
with:
|
|
path: |
|
|
~/.cargo/bin/
|
|
~/.cargo/registry/index/
|
|
~/.cargo/registry/cache/
|
|
~/.cargo/git/db/
|
|
mdBook/target
|
|
key: ${{ runner.os }}-cargo-mdBook-${{ hashFiles('mdBook/Cargo.lock') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-cargo-mdBook-
|
|
${{ runner.os }}-cargo-
|
|
- name: Build mdBook
|
|
run: cargo build --release
|
|
working-directory: ./mdBook
|
|
- name: Build docs
|
|
run: ../mdBook/target/release/mdbook build
|
|
working-directory: ./sunscreen_docs
|