ci: build-only check on pull requests
Some checks failed
PR Build Check / build (pull_request) Failing after 3m27s

deploy-quartz triggers on push to main only, so PRs got no checks. This
runs the same shared Quartz build script (same inputs as deploy-quartz)
on pull_request, without the Pages configure/upload/deploy steps, with
contents: read only and no secrets.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Void 2026-11-07 12:55:16 +00:00
commit 21eb3bdc36

43
.github/workflows/pr-build.yml vendored Normal file
View file

@ -0,0 +1,43 @@
name: PR Build Check
on:
pull_request:
permissions:
contents: read
concurrency:
group: pr-build-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout site repository
uses: actions/checkout@v4
- name: Checkout shared Quartz engine
uses: actions/checkout@v4
with:
repository: GameCult/GameCult-Quartz
path: GameCult-Quartz
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 24
cache: npm
cache-dependency-path: GameCult-Quartz/package-lock.json
- name: Install shared engine dependencies
working-directory: GameCult-Quartz
run: npm ci
- name: Build site through shared Quartz
run: >
node GameCult-Quartz/scripts/build-site.mjs build
--siteRoot "$GITHUB_WORKSPACE"
--contentDir GameCult
--overlayDir site
--outputDir quartz-site/public