Skip to content

Add docs build on GH Actions #6

Add docs build on GH Actions

Add docs build on GH Actions #6

Workflow file for this run

name: Build Docs
on:
workflow_dispatch:
push:
branches: [ "main" ]
paths:
- "docs/**"
- "mkdocs-base.yml"
- "stylua.toml"
- ".github/workflows/docs.yml"
pull_request:
branches: [ "main" ]
paths:
- "docs/**"
- "mkdocs-base.yml"
- "stylua.toml"
- ".github/workflows/docs.yml"
env:
CARGO_TERM_COLOR: always
jobs:
build_docs:
#runs-on: ubuntu-latest
runs-on: arc-runner-set
steps:
- uses: actions/checkout@v4
- name: "Install deps for arc"
run: apt install -y curl
- name: "Install Rust"
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
with:
#save-if: ${{ github.ref == 'refs/heads/master' }}
cache-on-failure: true
- name: Install stylua
uses: baptiste0928/cargo-install@v3
with:
crate: stylua
features: lua54
- name: Install gelatyx
uses: baptiste0928/cargo-install@v3
with:
crate: gelatyx
- name: Run build
run: CARDS=True ./docs/build.sh