Skip to content

Commit

Permalink
deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
aigem committed Sep 11, 2024
1 parent 14af622 commit b00c48b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ jobs:
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
env:
USERNAME: ${{ secrets.USERNAME || 'default_username' }}
PASSWORD: ${{ secrets.PASSWORD || 'default_password' }}
BUCKET_NAME: ${{ secrets.BUCKET_NAME || 'default_bucket_name' }}
10 changes: 8 additions & 2 deletions wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name = "r2-webdav-s3"
name = "your-worker-name"
main = "src/index.ts"
compatibility_date = "2023-01-01"

[vars]
# 这里不需要设置任何变量,因为我们将使用 Cloudflare 的环境变量
# 环境变量将在部署时由 GitHub Actions 提供
# USERNAME = ""
# PASSWORD = ""
# BUCKET_NAME = ""

[[r2_buckets]]
binding = "BUCKET"

0 comments on commit b00c48b

Please sign in to comment.