Skip to content

Deploy Cloudflare

Deploy Cloudflare #5

name: Deploy Cloudflare
on:
workflow_dispatch:
concurrency:
group: deploy-cloudflare-production
cancel-in-progress: false
permissions:
contents: read
jobs:
deploy:
name: Deploy affected Workers
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: Checkout reviewed release
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: 11.15.0
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build Worker release
run: >-
pnpm exec turbo run build
--filter=@cheatcode/agent-worker
--filter=@cheatcode/webhooks-worker
--filter=@cheatcode/gateway-worker
--filter=@cheatcode/preview-proxy
- name: Deploy affected Workers
run: pnpm cloudflare:deploy
env:
CLOUDFLARE_ACCOUNT_ID: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}