Skip to content

Deploy to Cloudflare Workers #210

Deploy to Cloudflare Workers

Deploy to Cloudflare Workers #210

Workflow file for this run

name: Deploy to Cloudflare Workers
on:
workflow_run:
workflows:
- CI
types:
- completed
branches:
- master
workflow_dispatch:
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
timeout-minutes: 10
if: ${{ github.event_name.workflow_dispatch || github.event.workflow_run.conclusion == 'success' }}
steps:
- name: 📥 Checkout source
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- name: 📥 Install dependencies
run: npm ci
- name: 📤 Deploy to Cloudflare Workers with Wrangler
uses: cloudflare/wrangler-action@09fc6b504568cf179b085df24393f237fea6c7f6 # v3.1.1
with:
accountId: ${{ secrets.CF_ACCOUNT_ID }}
apiToken: ${{ secrets.CF_API_TOKEN }}
command: deploy