Skip to content

Commit

Permalink
ci: release artifacts to aws-cn S3 (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
zyy17 committed Aug 21, 2023
1 parent 1e37aff commit 294be69
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,29 @@ jobs:
name: ${{ matrix.file }}.sha256sum
path: bin/${{ matrix.file }}.sha256sum

- name: Upload artifacts to S3
uses: nick-invision/retry@v2
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_CN_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_CN_SECRET_ACCESS_KEY}}
AWS_DEFAULT_REGION: ${{ vars.AWS_CN_RELEASE_BUCKET_REGION }}
with:
max_attempts: 20
timeout_minutes: 5
command: |
aws s3 cp \
bin/${{ matrix.file }}.tgz \
s3://${{ vars.AWS_CN_RELEASE_BUCKET }}/releases/gtctl/${{ github.ref_name }}/${{ matrix.file }}.tgz && \
aws s3 cp \
bin/${{ matrix.file }}.sha256sum \
s3://${{ vars.AWS_CN_RELEASE_BUCKET }}/releases/gtctl/${{ github.ref_name }}/${{ matrix.file }}.sha256sum && \
aws s3 cp \
bin/${{ matrix.file }}.tgz \
s3://${{ vars.AWS_CN_RELEASE_BUCKET }}/releases/gtctl/latest/${{ matrix.file }}.tgz && \
aws s3 cp \
bin/${{ matrix.file }}.sha256sum \
s3://${{ vars.AWS_CN_RELEASE_BUCKET }}/releases/gtctl/latest/${{ matrix.file }}.sha256sum
release:
name: release-artifacts
needs: [ build ]
Expand Down

0 comments on commit 294be69

Please sign in to comment.