Skip to content

Commit

Permalink
Chore: fix checksum upload (safe-global#3699)
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh authored May 14, 2024
1 parent f24f8f4 commit f2a8c4f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ jobs:
secrets: ${{ toJSON(secrets) }}
prod: ${{ true }}

- name: Create archive
run: tar -czf "$ARCHIVE_NAME".tar.gz out

- name: Create checksum
run: sha256sum "$ARCHIVE_NAME".tar.gz > ${{ env.ARCHIVE_NAME }}-sha256-checksum.txt

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v3
with:
Expand All @@ -44,12 +50,6 @@ jobs:
VERSION_TAG: ${{ github.event.release.tag_name }}

# Update the GitHub release with a checksummed archive
- name: Create archive
run: tar -czf "$ARCHIVE_NAME".tar.gz out

- name: Create checksum
run: sha256sum "$ARCHIVE_NAME".tar.gz > ${{ env.ARCHIVE_NAME }}-sha256-checksum.txt

- name: Upload archive
uses: actions/upload-release-asset@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion scripts/github/s3_upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -ev

if [[ -n $CHECKSUM_FILE ]]; then
if [[ -f $CHECKSUM_FILE ]]; then
cp ./$CHECKSUM_FILE ./out/$CHECKSUM_FILE
fi

Expand Down

0 comments on commit f2a8c4f

Please sign in to comment.