From 00df0e44170702ee6284d0776ba6e2aa4af5c47d Mon Sep 17 00:00:00 2001 From: Philipp Pelz Date: Fri, 6 Mar 2026 04:50:10 +0100 Subject: [PATCH] ci: add Quarto build and link-check workflow --- .github/workflows/quarto-ci.yml | 57 +++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .github/workflows/quarto-ci.yml diff --git a/.github/workflows/quarto-ci.yml b/.github/workflows/quarto-ci.yml new file mode 100644 index 0000000..49d9082 --- /dev/null +++ b/.github/workflows/quarto-ci.yml @@ -0,0 +1,57 @@ +name: Quarto CI + +on: + pull_request: + push: + branches: + - main + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: quarto-ci-${{ github.ref }} + cancel-in-progress: true + +jobs: + build-and-link-check: + runs-on: ubuntu-latest + timeout-minutes: 20 + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Quarto + uses: quarto-dev/quarto-actions/setup@v2 + + - name: Show Quarto version + run: quarto --version + + - name: Render site + run: quarto render + + - name: Upload rendered site artifact + uses: actions/upload-artifact@v4 + with: + name: quarto-site + path: docs + if-no-files-found: error + + - name: Link check (generated docs) + uses: lycheeverse/lychee-action@v2 + with: + args: >- + --verbose + --no-progress + --include-fragments + --retry-wait-time 2 + --max-retries 2 + --accept 200,429 + --exclude-mail + docs/**/*.html + docs/**/*.xml + fail: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}