Skip to content

Commit 491524f

Browse files
authored
Fix the code coverage bucket URL (#98)
# Pull Request Checklist Before submitting this PR, please make sure: - [ ] You have run `cargo clippy` and addressed any warnings - [ ] You have added appropriate tests (if applicable) - [ ] You have updated the documentation (if applicable) - [ ] You have reviewed your own code - [ ] You have updated changelog (if applicable) ## Description Please provide a brief description of the changes in this PR. ## Related Issues Please link any related issues here
1 parent d8b2393 commit 491524f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/check.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,17 @@ jobs:
104104
id: htmlUpload
105105
continue-on-error: true
106106
run: |
107-
aws --endpoint-url $ENDPOINT s3 sync ./target/llvm-cov/html s3://$BUCKET_NAME/$BRANCH
108-
echo "link=$(aws --endpoint-url $ENDPOINT s3 presign s3://$BUCKET_NAME/$BRANCH/index.html)" >> $GITHUB_OUTPUT
107+
aws --endpoint-url $ENDPOINT s3 sync ./target/llvm-cov/html s3://$BUCKET_NAME/$BRANCH --acl public-read
108+
echo "link=https://$BUCKET_NAME.$REGION.$ENDPOINT_DOMAIN/$BRANCH/index.html" >> $GITHUB_OUTPUT
109109
env:
110110
BRANCH: ${{ steps.extractBranch.outputs.branch }}
111111
ENDPOINT: ${{ vars.COV_ENDPOINT_URL }}
112112
BUCKET_NAME: ${{ vars.COV_BUCKET_NAME }}
113113
AWS_ACCESS_KEY_ID: ${{ secrets.COV_AWS_ACCESS_KEY_ID }}
114114
AWS_SECRET_ACCESS_KEY: ${{ secrets.COV_AWS_SECRET_ACCESS_KEY }}
115115
AWS_DEFAULT_REGION: ${{ vars.COV_DEFAULT_REGION }}
116+
REGION: nyc3
117+
ENDPOINT_DOMAIN: "digitaloceanspaces.com"
116118

117119
- name: Add coverage PR report comment
118120
if: success() && steps.findPr.outputs.number

0 commit comments

Comments
 (0)