Skip to content

Deploy to Cloudflare Workers #4

Deploy to Cloudflare Workers

Deploy to Cloudflare Workers #4

Workflow file for this run

name: Deploy to Cloudflare Workers
on:
workflow_dispatch:
inputs: {}
jobs:
build-and-deploy:
runs-on: ubuntu-latest
name: Build & Deploy
steps:
- uses: actions/checkout@v4
- name: Publish
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: deploy --env production --minify src/index.js
environment: production