Skip to content

Commit

Permalink
My Init
Browse files Browse the repository at this point in the history
  • Loading branch information
eric1197 committed May 7, 2024
1 parent 2f4d5ed commit 2c21f7f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/deploy-worker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Deploy Worker

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Deploy Worker
run: |
curl -X PUT "https://api.cloudflare.com/client/v4/accounts/${{ secrets.CF_ACCOUNT_ID }}/workers/scripts/tings-cloudy/worker.js" \
-H "X-Auth-Email: ${{ secrets.CF_API_EMAIL }}" \
-H "Authorization: Bearer ${{ secrets.CF_API_KEY }}" \
-H "Content-Type: application/javascript" \
--data-binary "@_backend/worker.js"
4 changes: 4 additions & 0 deletions wrangler.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[[r2_buckets]]
binding = "ting-storage"
bucket_name = "ting-storage"
preview_bucket_name = "ting-storage"

0 comments on commit 2c21f7f

Please sign in to comment.