Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: oven-sh/setup-bun@v2
with:
node-version: 20
bun-version: 1.3.5
- name: Install dependencies
working-directory: web
run: npm ci
run: bun install --frozen-lockfile
- name: Build site
working-directory: web
run: npm run build
run: bun run build
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/web-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: oven-sh/setup-bun@v2
with:
node-version: 20
bun-version: 1.3.5
- name: Install dependencies
working-directory: web
run: npm ci
run: bun install --frozen-lockfile
- name: Build site
working-directory: web
run: npm run build
run: bun run build
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ clients/typescript/package-lock.json
web/node_modules/
web/dist/
web/.astro/
# web/bun.lock is committed on purpose (reproducible Bun installs).
# Ignore any stale npm lockfile now that the site uses Bun.
web/package-lock.json
10 changes: 5 additions & 5 deletions web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ built with [Astro](https://astro.build) + [Starlight](https://starlight.astro.bu

```bash
cd web
npm install
npm run dev # http://localhost:4321
bun install
bun run dev # http://localhost:4321
```

## Build and preview

```bash
npm run build # static output in web/dist/
npm run preview # serve the built site locally
bun run build # static output in web/dist/
bun run preview # serve the built site locally
```

## Deploy

`web/dist/` is a static bundle. The intended target is `pgque.dev` via a static
host (Cloudflare Pages / Netlify / GitHub Pages). Build command `npm run build`,
host (Cloudflare Pages / Netlify / GitHub Pages). Build command `bun run build`,
output directory `web/dist`, project root `web/`. No CI/CD deploy is wired up yet.
Loading
Loading