Skip to content

feat(ci): add Cloudflare Pages deployment (#7) #4

feat(ci): add Cloudflare Pages deployment (#7)

feat(ci): add Cloudflare Pages deployment (#7) #4

Workflow file for this run

name: Build
on:
workflow_dispatch:
pull_request:
types: [opened, reopened]
paths:
- 'website/**'
- '.github/workflows/build.yml'
push:
branches:
- main
paths:
- 'website/**'
- '.github/workflows/build.yml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: website/package-lock.json
- name: Install dependencies
working-directory: website
run: npm ci
- name: Type check
working-directory: website
run: npx astro check
- name: Build
working-directory: website
run: npm run build