Skip to content

Update deploy.yml

Update deploy.yml #1

Workflow file for this run

name: Deploy to Cloudflare Workers
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Wrangler
run: npm install -g wrangler
- name: Set Cloudflare API Token
run: echo "CLOUDFLARE_API_TOKEN=${{ secrets.CLOUDFLARE_API_TOKEN }}" >> $GITHUB_ENV
- name: Deploy Worker
run: wrangler deploy