From 022f72ec0d7e43cc26e99c4a6c701fd86f06c61b Mon Sep 17 00:00:00 2001 From: Evan Pagryzinski Date: Mon, 8 Jul 2024 16:19:19 +0100 Subject: [PATCH] Updating workflows to include sha256 --- .github/workflows/prerelease.yml | 21 +++++++++++++++------ .github/workflows/release.yml | 2 ++ .gitignore | 3 +++ 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index d06e324245..3d4d983828 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -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 @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 488b71885b..96eb4389b1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,6 +43,8 @@ jobs: with: files: | Release.txt + md5checksum.txt + sha256checksum.txt *.zip *.tar.gz diff --git a/.gitignore b/.gitignore index a93f0ad4d1..f4b57028f1 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,9 @@ out # SonarQube-generated directories .scannerwork +#jfr profileconfig +.profileconfig.json + # "Embedded" postgres database directory .postgres_testinstance