Skip to content

Detect: sniff the OpenAPI spec, never parse it (existence + URL only) #22

Detect: sniff the OpenAPI spec, never parse it (existence + URL only)

Detect: sniff the OpenAPI spec, never parse it (existence + URL only) #22

Workflow file for this run

name: Deploy to Cloudflare
on:
push:
branches: [main]
workflow_dispatch:
# Only one deploy at a time; cancel an in-flight run when a newer push lands.
concurrency:
group: deploy-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
# normalize -> astro build -> pagefind, exactly as `bun run build` does locally.
- name: Build
run: bun run build
- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
# dist/ is already built above; just upload + deploy.
command: deploy