fix(ci): avoid setting r2 cors during changelog sync
This commit is contained in:
parent
00baa3c337
commit
7d0a531b7e
|
|
@ -1,11 +0,0 @@
|
|||
{
|
||||
"CORSRules": [
|
||||
{
|
||||
"AllowedHeaders": ["*"],
|
||||
"AllowedMethods": ["GET", "HEAD"],
|
||||
"AllowedOrigins": ["*"],
|
||||
"ExposeHeaders": ["ETag"],
|
||||
"MaxAgeSeconds": 3600
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue