Skip to content

Merge pull request #1 from advent-of-ai-security/blacksmith-migration… #50

Merge pull request #1 from advent-of-ai-security/blacksmith-migration…

Merge pull request #1 from advent-of-ai-security/blacksmith-migration… #50

Workflow file for this run

name: Deploy to Cloudflare Workers
on:
push:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: deploy-workers
cancel-in-progress: true
jobs:
deploy:
runs-on: blacksmith-2vcpu-ubuntu-2404
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install d2
run: curl -fsSL https://d2lang.com/install.sh | sh -s --
- name: Install deps
run: bun install --frozen-lockfile
- name: Build
run: bun run build
- name: Deploy (Wrangler Action)
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: deploy