From 33580b2365ac438452661a51dafd11067fd7fab2 Mon Sep 17 00:00:00 2001 From: "Hunter T." Date: Thu, 9 Oct 2025 09:36:05 -0700 Subject: [PATCH 1/2] Add GitHub Actions workflow for MkDocs build Signed-off-by: Hunter T. --- .github/workflows/pr-build.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/pr-build.yml diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml new file mode 100644 index 0000000..2027724 --- /dev/null +++ b/.github/workflows/pr-build.yml @@ -0,0 +1,22 @@ +name: Build the site with MkDocs + +on: + pull_request: + branches: [ main ] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 + with: + fetch-depth: 1 + + - name: Install uv + uses: astral-sh/setup-uv@eb1897b8dc4b5d5bfe39a428a8f2304605e0983c # v7 + + - name: Install the project + run: uv sync --locked + + - name: Build the site with MkDocs + run: uv run mkdocs build --strict From 240234928c1522281605967c5e9407c42762b73b Mon Sep 17 00:00:00 2001 From: "Hunter T." Date: Thu, 9 Oct 2025 10:13:33 -0700 Subject: [PATCH 2/2] Add permissions to pr-build.yml Add permissions section to the PR build workflow Signed-off-by: Hunter T. --- .github/workflows/pr-build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index 2027724..5bbd3fd 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -1,5 +1,8 @@ name: Build the site with MkDocs +permissions: + contents: read + on: pull_request: branches: [ main ]