From 918b739b6c24c4ea37534653137b14df0a316673 Mon Sep 17 00:00:00 2001 From: bnkai <48220860+bnkai@users.noreply.github.com> Date: Thu, 4 Feb 2021 00:41:05 +0200 Subject: [PATCH] Add checksums for releases (#1093) --- .travis.yml | 4 ++++ scripts/upload-pull-request.sh | 3 +++ 2 files changed, 7 insertions(+) diff --git a/.travis.yml b/.travis.yml index f4839e07d..3af31bca5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,6 +25,8 @@ script: after_success: - docker pull stashapp/compiler:4 - sh ./scripts/cross-compile.sh +- git describe --tags --exclude latest_develop | tee CHECKSUMS_SHA1 +- sha1sum dist/stash-* | sed 's/dist\///g' | tee -a CHECKSUMS_SHA1 - 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then sh ./scripts/upload-pull-request.sh; fi' before_deploy: # push the latest tag when on the develop branch @@ -47,6 +49,7 @@ deploy: - dist/stash-linux-arm64v8 - dist/stash-linux-arm32v7 - dist/stash-pi + - CHECKSUMS_SHA1 skip_cleanup: true overwrite: true name: "${STASH_VERSION}: Latest development build" @@ -73,6 +76,7 @@ deploy: - dist/stash-linux-arm64v8 - dist/stash-linux-arm32v7 - dist/stash-pi + - CHECKSUMS_SHA1 # make the release a draft so the maintainers can confirm before releasing draft: true skip_cleanup: true diff --git a/scripts/upload-pull-request.sh b/scripts/upload-pull-request.sh index 10523c903..358880c76 100644 --- a/scripts/upload-pull-request.sh +++ b/scripts/upload-pull-request.sh @@ -33,3 +33,6 @@ uploadFile() uploadFile "dist/stash-osx" uploadFile "dist/stash-win.exe" uploadFile "dist/stash-linux" + +echo "SHA1 Checksums" +cat CHECKSUMS_SHA1 | grep -v '\-pi\|\-arm'