Add checksums for releases (#1093)

This commit is contained in:
bnkai 2021-02-04 00:41:05 +02:00 committed by GitHub
parent 25b600f768
commit 918b739b6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -25,6 +25,8 @@ script:
after_success: after_success:
- docker pull stashapp/compiler:4 - docker pull stashapp/compiler:4
- sh ./scripts/cross-compile.sh - 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' - 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then sh ./scripts/upload-pull-request.sh; fi'
before_deploy: before_deploy:
# push the latest tag when on the develop branch # push the latest tag when on the develop branch
@ -47,6 +49,7 @@ deploy:
- dist/stash-linux-arm64v8 - dist/stash-linux-arm64v8
- dist/stash-linux-arm32v7 - dist/stash-linux-arm32v7
- dist/stash-pi - dist/stash-pi
- CHECKSUMS_SHA1
skip_cleanup: true skip_cleanup: true
overwrite: true overwrite: true
name: "${STASH_VERSION}: Latest development build" name: "${STASH_VERSION}: Latest development build"
@ -73,6 +76,7 @@ deploy:
- dist/stash-linux-arm64v8 - dist/stash-linux-arm64v8
- dist/stash-linux-arm32v7 - dist/stash-linux-arm32v7
- dist/stash-pi - dist/stash-pi
- CHECKSUMS_SHA1
# make the release a draft so the maintainers can confirm before releasing # make the release a draft so the maintainers can confirm before releasing
draft: true draft: true
skip_cleanup: true skip_cleanup: true

View File

@ -33,3 +33,6 @@ uploadFile()
uploadFile "dist/stash-osx" uploadFile "dist/stash-osx"
uploadFile "dist/stash-win.exe" uploadFile "dist/stash-win.exe"
uploadFile "dist/stash-linux" uploadFile "dist/stash-linux"
echo "SHA1 Checksums"
cat CHECKSUMS_SHA1 | grep -v '\-pi\|\-arm'