From 69595fab49b11550a81b94cc608689ffeca5ec6c Mon Sep 17 00:00:00 2001 From: awalsh128 Date: Sat, 14 Nov 2026 10:42:29 -0800 Subject: [PATCH] ci: add docs-only deploy workflow Co-Authored-By: Claude Sonnet 5.5 --- .github/workflows/docs.yml | 37 +++++++++++++++++++++++++++++++++++ .github/workflows/release.yml | 3 +-- 2 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..5521323 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,37 @@ +name: Docs + +# Rebuilds the Doxygen website from the dispatched branch and deploys it to GitHub Pages, without +# cutting a release. Releases deploy the docs through release.yml. +on: + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: docs + cancel-in-progress: false + +jobs: + deploy: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - name: Install Doxygen + run: sudo apt-get update && sudo apt-get install -y doxygen graphviz ninja-build + + - name: Configure + run: cmake -B build -G Ninja -DCMAKE_CXX_COMPILER=clang++ -DBUILD_WEBSITE=ON + + - name: Build website + run: cmake --build build --target website_api + + - name: Deploy to GitHub Pages + uses: JamesIves/github-pages-deploy-action@fa24774553152dd7873cd16ebd8d959b010c5445 # v4.9.0 + with: + branch: gh-pages + folder: build/website diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 32d3360..0876a2d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,8 +4,7 @@ name: Release # workflow by hand with a tag, which creates the tag on the dispatched commit. # The tag must match the project VERSION in CMakeLists.txt. # -# To redeploy the docs without a new release, re-run the "docs" job of the -# latest release run. +# To redeploy the docs without a new release, run the "Docs" workflow (docs.yml) by hand. on: push: tags: ["v*"]