Skip to content

Commit 918b739

Browse files
authored
Add checksums for releases (stashapp#1093)
1 parent 25b600f commit 918b739

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.travis.yml

+4
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ script:
2525
after_success:
2626
- docker pull stashapp/compiler:4
2727
- sh ./scripts/cross-compile.sh
28+
- git describe --tags --exclude latest_develop | tee CHECKSUMS_SHA1
29+
- sha1sum dist/stash-* | sed 's/dist\///g' | tee -a CHECKSUMS_SHA1
2830
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then sh ./scripts/upload-pull-request.sh; fi'
2931
before_deploy:
3032
# push the latest tag when on the develop branch
@@ -47,6 +49,7 @@ deploy:
4749
- dist/stash-linux-arm64v8
4850
- dist/stash-linux-arm32v7
4951
- dist/stash-pi
52+
- CHECKSUMS_SHA1
5053
skip_cleanup: true
5154
overwrite: true
5255
name: "${STASH_VERSION}: Latest development build"
@@ -73,6 +76,7 @@ deploy:
7376
- dist/stash-linux-arm64v8
7477
- dist/stash-linux-arm32v7
7578
- dist/stash-pi
79+
- CHECKSUMS_SHA1
7680
# make the release a draft so the maintainers can confirm before releasing
7781
draft: true
7882
skip_cleanup: true

scripts/upload-pull-request.sh

+3
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ uploadFile()
3333
uploadFile "dist/stash-osx"
3434
uploadFile "dist/stash-win.exe"
3535
uploadFile "dist/stash-linux"
36+
37+
echo "SHA1 Checksums"
38+
cat CHECKSUMS_SHA1 | grep -v '\-pi\|\-arm'

0 commit comments

Comments
 (0)