-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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' }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |