-
Notifications
You must be signed in to change notification settings - Fork 932
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -854,17 +854,31 @@ jobs: | |
signed/win32/*zip \ | ||
signed/winx64/*zip | ||
- name: Upload installers to CLAW S3 bucket | ||
# forked for security considerations | ||
uses: pivotalsoftware/[email protected] #pinned to no-default-region change | ||
- name: Setup aws to upload installers to CLAW S3 bucket | ||
if: ${{ github.ref_type == 'tag' }} | ||
uses: aws-actions/configure-aws-credentials@v2 | ||
env: | ||
DEST_DIR: "releases/v${{ env.VERSION_BUILD }}" | ||
SOURCE_DIR: upload | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AWS_S3_ROLE_ARN: ${{ secrets.AWS_S3_ROLE_ARN }} | ||
SOURCE_DIR: upload | ||
DEST_DIR: "releases/v${{ env.INSTALLER_RELEASE_VERSION }}" | ||
with: | ||
aws-access-key-id: ${{ env.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ env.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: us-west-1 | ||
role-to-assume: ${{ env.AWS_S3_ROLE_ARN }} | ||
role-skip-session-tagging: true | ||
role-duration-seconds: 1200 | ||
|
||
- name: Upload installers to CLAW S3 bucket | ||
run: | | ||
aws s3 sync upload "s3://${{ env.AWS_S3_BUCKET }}/releases/v${{ env.INSTALLER_RELEASE_VERSION }}/" | ||
- name: list S3 for human verification | ||
uses: docker://amazon/aws-cli:latest | ||
with: | ||
args: s3 ls "${{ env.AWS_S3_BUCKET }}/releases/v${{ env.VERSION_BUILD }}/" | ||
run: | | ||
aws s3 ls "s3://${{ env.AWS_S3_BUCKET }}/releases/v${{ env.INSTALLER_RELEASE_VERSION }}/" | ||
- name: Instruct human to update CLAW | ||
run: | | ||
|