Create deploy.yml

This commit is contained in:
xixu-me committed 2024-11-02 19:20:33 +08:00
1 parent 5c75dabad5
commit 61e521dce9
1 file changed
+16
+16
View File
@@ -0,0 +1,16 @@
name: Deploy to Cloudflare Workers
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build & Deploy Worker
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}