mirror of
https://github.com/KumoCorp/kumomta.git
synced 2026-08-19 00:01:07 +00:00
41a96bcb0f
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
59 lines
1.3 KiB
YAML
59 lines
1.3 KiB
YAML
name: Build Docs
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [ "main" ]
|
|
paths:
|
|
- ".github/workflows/docs.yml"
|
|
- "crates/toml2jsonc/**"
|
|
- "docs/**"
|
|
- "mkdocs-base.yml"
|
|
- "stylua.toml"
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
paths:
|
|
- ".github/workflows/docs.yml"
|
|
- "crates/toml2jsonc/**"
|
|
- "docs/**"
|
|
- "mkdocs-base.yml"
|
|
- "stylua.toml"
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
CARGO_INCREMENTAL: 0
|
|
RUSTC_WRAPPER: "sccache"
|
|
SCCACHE_GHA_ENABLED: "true"
|
|
|
|
jobs:
|
|
build_docs:
|
|
permissions:
|
|
contents: write
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- name: "Install Rust"
|
|
uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
toolchain: stable
|
|
- name: "Setup sccache"
|
|
uses: mozilla-actions/sccache-action@v0.0.9
|
|
- 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: |
|
|
echo "target" > .dockerignore
|
|
CI=false ./docs/build.sh
|
|
- name: Publish
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
env:
|
|
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: ./assets/ci/push-gh-pages.sh
|