Skip to content

Commit

Permalink
ci: add checksum for upload to s3 (#1352)
Browse files Browse the repository at this point in the history
  • Loading branch information
daviderli614 authored Dec 5, 2024
1 parent cd2e760 commit 31b3374
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/addDocsToS3BucketAWS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ jobs:
- run: pnpm install
- run: DOC_LANG=zh pnpm build

- name: Check the build file
- name: Check the built files
shell: bash
run: |
ls -lhR ./build
- name: Upload to S3
run: |
aws s3 sync ./build s3://${{ secrets.DOCUMENT_BUCKET }} --delete
aws s3 sync --checksum-algorithm=SHA256 ./build s3://${{ secrets.DOCUMENT_BUCKET }} --delete
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down

0 comments on commit 31b3374

Please sign in to comment.