-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (26 loc) · 762 Bytes
/
Copy pathbuild.yml
File metadata and controls
34 lines (26 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Validate cross-references
run: node scripts/validate.js
- name: Build site (sanity check — output discarded)
run: node scripts/build.js
# GitHub Pages serves directly from `main` branch root on this repo.
# No deploy step is needed — pushing to main is the deploy.
#
# Template forks that want automated deploy-to-gh-pages can add back the
# peaceiris/actions-gh-pages step here and set permissions.contents to write.