Skip to content

Commit

Permalink
Updating workflows to include sha256
Browse files Browse the repository at this point in the history
  • Loading branch information
epag committed Jul 8, 2024
1 parent cf19abc commit 022f72e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,20 @@ jobs:
../gradlew distZip
# Create the md5
- name: Creating md5
- name: Creating md5checksum
run: |
md5sum build/distributions/wres-*.zip >> checksum.txt
md5sum wres-*/build/distributions/wres-*-*.zip >> checksum.txt
md5sum systests/build/distributions/systests-*.zip >> checksum.txt
md5sum scripts/build/distributions/wres-admin-scripts-*.zip >> checksum.txt
md5sum build/distributions/wres-*.zip >> md5checksum.txt
md5sum wres-*/build/distributions/wres-*-*.zip >> md5checksum.txt
md5sum systests/build/distributions/systests-*.zip >> md5checksum.txt
md5sum scripts/build/distributions/wres-admin-scripts-*.zip >> md5checksum.txt
# Create the sha256
- name: Creating sha256checksum
run: |
sha256sum build/distributions/wres-*.zip >> sha256checksum.txt
sha256sum wres-*/build/distributions/wres-*-*.zip >> sha256checksum.txt
sha256sum systests/build/distributions/systests-*.zip >> sha256checksum.txt
sha256sum scripts/build/distributions/wres-admin-scripts-*.zip >> sha256checksum.txt
# Deletes drafts incase the staging tag was deleted to change it to a different commit
- name: Delete drafts
Expand All @@ -70,7 +78,8 @@ jobs:
with:
prerelease: true
files: |
checksum.txt
md5checksum.txt
sha256checksum.txt
Release.txt
build/distributions/wres-*.zip
wres-*/build/distributions/wres-*-*.zip
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ jobs:
with:
files: |
Release.txt
md5checksum.txt
sha256checksum.txt
*.zip
*.tar.gz
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ out
# SonarQube-generated directories
.scannerwork

#jfr profileconfig
.profileconfig.json

# "Embedded" postgres database directory
.postgres_testinstance

Expand Down

0 comments on commit 022f72e

Please sign in to comment.