ssg.md/.forgejo/workflows/deploy.yml
satr14 14d3cbf9fa
Some checks failed
Build and Deploy / deploy (push) Failing after 3s
update git
2026-06-06 10:21:29 +07:00

35 lines
829 B
YAML

name: Build and Deploy
on:
workflow_dispatch:
push:
branches: [ main ]
jobs:
deploy:
runs-on: debian
steps:
- name: Update git
run: sudo apt-get update && sudo apt-get install -y git
- 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
- 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 }}