Skip to content

Deploy to Cloudflare Workers #218

Deploy to Cloudflare Workers

Deploy to Cloudflare Workers #218

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@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
- name: 📥 Install dependencies
run: npm ci
- name: 📤 Deploy to Cloudflare Workers with Wrangler
uses: cloudflare/wrangler-action@5a6b8d26847f6ab196fd2441fc52dc87b72c1b99 # v3.2.0
with:
accountId: ${{ secrets.CF_ACCOUNT_ID }}
apiToken: ${{ secrets.CF_API_TOKEN }}
command: deploy