Skip to content

updated action

updated action #2

Workflow file for this run

name: Deploy Cloudflare Worker
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Latest Wrangler
run: npm install -g wrangler
- name: Publish to Cloudflare
run: wrangler deploy
env:
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
CF_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}