mirror of
https://github.com/wez/wezterm.git
synced 2024-12-26 14:54:16 +03:00
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
name: verify-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"
|
|
|
|
jobs:
|
|
build-docs:
|
|
env:
|
|
BUILD_REASON: "PR"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: "Install Rust"
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: "minimal"
|
|
toolchain: "stable"
|
|
override: true
|
|
env:
|
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
|
- name: Install gelatyx
|
|
uses: baptiste0928/cargo-install@v1
|
|
with:
|
|
crate: gelatyx
|
|
args: --locked
|
|
- name: Install mdbook-linkcheck
|
|
uses: baptiste0928/cargo-install@v1
|
|
with:
|
|
crate: mdbook-linkcheck
|
|
args: --locked
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: 3.x
|
|
- uses: actions/cache@v2
|
|
with:
|
|
key: ${{ github.ref }}
|
|
path: .cache
|
|
- name: Build
|
|
run: ./ci/build-docs.sh
|
|
|