Skip to content

Workflow file for this run

name: Deploy to Cloudflare Workers
on:
push:
pull_request:
repository_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
name: Build and deploy
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies and deploy
run: npm run deploy
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}