From fc7e902c2766ccef3abeec5e10bd06622e9cf0a7 Mon Sep 17 00:00:00 2001 From: Travis Gockel Date: Mon, 20 Jul 2026 22:13:52 -0600 Subject: [PATCH] ci: Build the documentation book in CI --- .github/workflows/book.yaml | 44 +++++++++++++++++++++++++++++++++++++ book.toml | 1 - 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/book.yaml diff --git a/.github/workflows/book.yaml b/.github/workflows/book.yaml new file mode 100644 index 0000000..3dc1989 --- /dev/null +++ b/.github/workflows/book.yaml @@ -0,0 +1,44 @@ +name: Book + +on: + push: + branches: [trunk] + pull_request: + branches: [trunk] + +permissions: + contents: read + +concurrency: + group: pages + cancel-in-progress: false + +jobs: + build: + name: Build book + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: peaceiris/actions-mdbook@v2 + with: + mdbook-version: latest + - name: Build + run: mdbook build + - uses: actions/upload-pages-artifact@v3 + with: + path: target/doc + + deploy: + name: Deploy to GitHub Pages + if: github.event_name == 'push' + needs: build + runs-on: ubuntu-latest + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - uses: actions/deploy-pages@v4 + id: deployment diff --git a/book.toml b/book.toml index bbfb139..837fa9b 100644 --- a/book.toml +++ b/book.toml @@ -1,7 +1,6 @@ [book] authors = ["Travis Gockel"] language = "en" -multilingual = false src = "doc" [build]