mirror of
https://github.com/wez/wezterm.git
synced 2024-12-02 11:03:49 +03:00
44 lines
1.4 KiB
YAML
44 lines
1.4 KiB
YAML
name: pages
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "docs/**"
|
|
- "ci/build-docs.sh"
|
|
- "ci/generate-docs.py"
|
|
- "ci/subst-release-info.py"
|
|
- ".github/workflows/verify-pages.yml"
|
|
- ".github/ISSUE_TEMPLATE/*"
|
|
|
|
jobs:
|
|
build-docs:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: Install Rust
|
|
run: |
|
|
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable
|
|
source $HOME/.cargo/env
|
|
rustup update stable
|
|
- name: Cache mdBook
|
|
uses: actions/cache@v1
|
|
with:
|
|
path: ~/mdbook-bin
|
|
key: cargo-bin-mdbook-2
|
|
- name: Install mdBook
|
|
run: |
|
|
mkdir -p ~/mdbook-bin
|
|
(test -x ~/mdbook-bin/mdbook || (cd && cargo install --vers "^0.4" mdbook && cp -p ~/.cargo/bin/mdbook ~/mdbook-bin))
|
|
(test -x ~/mdbook-bin/mdbook-linkcheck || (cd && cargo install mdbook-linkcheck && cp -p ~/.cargo/bin/mdbook-linkcheck ~/mdbook-bin))
|
|
(test -x ~/mdbook-bin/mdbook-mermaid || (cd && cargo install mdbook-mermaid && cp -p ~/.cargo/bin/mdbook-mermaid ~/mdbook-bin))
|
|
(test -x ~/mdbook-bin/gelatyx || (cd && cargo install gelatyx && cp -p ~/.cargo/bin/gelatyx ~/mdbook-bin))
|
|
- name: Build
|
|
run: |
|
|
source $HOME/.cargo/env
|
|
PATH="$HOME/mdbook-bin:$PATH"
|
|
./ci/build-docs.sh
|
|
|