Skip to content

Commit

Permalink
add cf worker deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
lalalune committed Feb 13, 2024
1 parent f09ad28 commit 3e46ce6
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/deploy_worker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deploy Cloudflare Worker
on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'

- name: Install Dependencies
run: npm install

- name: Deploy Worker
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
run: npx wrangler deploy

0 comments on commit 3e46ce6

Please sign in to comment.