Skip to content

Add deploy workflow

Add deploy workflow #5

Workflow file for this run

name: Deploy to Cloudflare Workers
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install Dependencies
run: npm i
- name: Authenticate Wrangler
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
run: npx wrangler config
- name: Publish to Cloudflare Workers
run: npx wrangler deploy