ci: restore legacy .github workflows (era GitHub asli) — hapus hanya jika memang mirror-only

This commit is contained in:
asepharyana
2026-08-01 16:58:21 +07:00
parent be1e4cabc3
commit 719c0e5a42
3 changed files with 149 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
name: Deploy to Cloudflare Workers
on:
push:
branches:
- master
workflow_dispatch:
jobs:
deploy:
name: Deploy to Cloudflare Workers
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install Dependencies
run: bun install --frozen-lockfile
- name: Run Tests
run: bun test
- name: Deploy Worker
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
command: deploy
wranglerVersion: "4.110.0"