diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml new file mode 100644 index 0000000..7e6c838 --- /dev/null +++ b/.github/workflows/preview-build.yml @@ -0,0 +1,36 @@ +name: Build Preview + +on: + pull_request: + branches: [main] + +permissions: + contents: read + +jobs: + build: + name: Build site + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v5 + + - name: Setup Node.js + uses: actions/setup-node@v6 + with: + node-version: "24" + cache: "npm" + + - name: Install dependencies + run: npm ci + + - name: Build GAP website + run: npm run build + + - name: Upload build artifact + uses: actions/upload-artifact@v4 + with: + name: preview-build + path: _site + retention-days: 1 diff --git a/wrangler.jsonc b/wrangler.jsonc new file mode 100644 index 0000000..7ffd0bb --- /dev/null +++ b/wrangler.jsonc @@ -0,0 +1,8 @@ +{ + "$schema": "node_modules/wrangler/config-schema.json", + "name": "gaps", + "compatibility_date": "2026-05-23", + "assets": { + "directory": "./_site" + } +}