Skip to content

Deploy Web

Deploy Web #36

Workflow file for this run

name: Deploy Web
on:
workflow_dispatch:
workflow_run:
workflows: [Release]
types: [completed]
branches: [main]
push:
branches: [main]
paths:
- "apps/web/**"
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
jobs:
deploy:
runs-on: ubuntu-latest
if: github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success'
defaults:
run:
working-directory: apps/web
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install
working-directory: .
- run: bun run lint
working-directory: .
- run: bun run build
- run: bunx wrangler pages deploy dist --project-name prq-web