fix(ci): avoid setting r2 cors during changelog sync

This commit is contained in:
t8y2 2026-05-18 10:27:15 +08:00
parent 00baa3c337
commit 7d0a531b7e
2 changed files with 0 additions and 15 deletions

11
.github/r2-cors.json vendored
View File

@ -1,11 +0,0 @@
{
"CORSRules": [
{
"AllowedHeaders": ["*"],
"AllowedMethods": ["GET", "HEAD"],
"AllowedOrigins": ["*"],
"ExposeHeaders": ["ETag"],
"MaxAgeSeconds": 3600
}
]
}

View File

@ -28,10 +28,6 @@ jobs:
- name: Upload to R2
run: |
pip install awscli --quiet
aws s3api put-bucket-cors \
--bucket "${R2_BUCKET_NAME}" \
--cors-configuration file://.github/r2-cors.json \
--endpoint-url "https://${R2_ACCOUNT_ID}.r2.cloudflarestorage.com"
aws s3 cp releases-cn.json "s3://${R2_BUCKET_NAME}/changelog/releases-cn.json" \
--endpoint-url "https://${R2_ACCOUNT_ID}.r2.cloudflarestorage.com" \
--content-type application/json