Skip to content

Commit b856d58

Browse files
committed
fix: Upload action fix
1 parent 8da1038 commit b856d58

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

.github/workflows/validate-servers.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,10 @@ jobs:
3535
- name: Checkout
3636
uses: actions/checkout@v2
3737

38-
- name: Configure AWS credentials
39-
uses: aws-actions/configure-aws-credentials@v1
40-
with:
41-
aws-region: us-east-1
42-
4338
- name: Upload to R2
4439
env:
4540
CF_R2_ACCESS_KEY_ID: ${{ secrets.CF_R2_ACCESS_KEY_ID }}
4641
CF_R2_SECRET_ACCESS_KEY: ${{ secrets.CF_R2_SECRET_ACCESS_KEY }}
4742
CF_R2_URL: ${{ secrets.CF_R2_URL }}
4843
run: |
49-
aws s3 cp servers.json s3://$CF_R2_URL/servers.json --endpoint-url https://$CF_R2_URL
44+
aws s3 cp servers.json s3://$CF_R2_URL/servers.json --endpoint-url https://$CF_R2_URL --content-type "application/json" --cache-control "public, max-age=86400"

0 commit comments

Comments
 (0)