5th-site-expanded/.forgejo/workflows/deploy.yml
satr14 7deb88c404
All checks were successful
Build and Deploy / deploy (push) Successful in 1m5s
fix branch name
2026-07-18 22:10:14 +07:00

39 lines
903 B
YAML

name: Build and Deploy
on:
workflow_dispatch:
push:
branches: [ master ]
jobs:
deploy:
runs-on: debian
steps:
- name: Update git
run: |
apt-get update -y
apt-get install -y git unzip
- name: Checkout
uses: actions/checkout@v4
with:
github-server-url: https://git.satr14.my.id
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: 'latest'
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build
run: bun run build
env:
NODE_ENV: production
- name: Deploy to Cloudflare Workers
run: bunx wrangler deploy --assets=./.svelte-kit/cloudflare
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}