5th-site-expanded/.forgejo/workflows/deploy.yaml
Satria 7834d1f4b5
All checks were successful
Deploy to Cloudflare Workers / deploy (push) Successful in 47s
debug logs and gitignore
2026-03-19 21:42:03 +07:00

32 lines
No EOL
758 B
YAML

name: Deploy to Cloudflare Workers
on:
push:
branches:
- master
jobs:
deploy:
runs-on: docker
container:
image: oven/bun:latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build
run: bun run build
# debug step
- name: Check build output
run: ls -la .svelte-kit/cloudflare/ || echo "BUILD OUTPUT MISSING"
- name: Deploy to Cloudflare Workers
run: bunx wrangler deploy
env:
WRANGLER_LOG: "debug"
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}