ssg.md/.forgejo/workflows/deploy.yml
satr14 f7f41783eb
Some checks failed
Build and Deploy / deploy (push) Failing after 14s
change fix
2026-06-06 09:57:12 +07:00

27 lines
628 B
YAML

name: Build and Deploy
on:
workflow_dispatch:
push:
branches: [ main ]
jobs:
deploy:
runs-on: aio
steps:
- name: Checkout
uses: actions/checkout@v4
with:
github-server-url: https://git.proxy.satr14.my.id
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build
run: bun run build
- name: Deploy to Cloudflare Workers
run: bunx wrangler deploy --assets=./dist
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}