From 8df2b25184e6d6b85bbc738776473b3266c0b93d Mon Sep 17 00:00:00 2001 From: Richard Gee Date: Thu, 15 Nov 2018 07:33:39 +0000 Subject: [PATCH] Add sha256 has to ci deploy binaries Signed-off-by: Richard Gee --- .gitignore | 1 + .travis.yml | 7 +++++++ ci/hashgen.sh | 3 +++ 3 files changed, 11 insertions(+) create mode 100755 ci/hashgen.sh diff --git a/.gitignore b/.gitignore index 3f127a53..bd7c319f 100644 --- a/.gitignore +++ b/.gitignore @@ -19,4 +19,5 @@ faster of-watchdog* build template +**/*.sha256 diff --git a/.travis.yml b/.travis.yml index b4163404..f8905236 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,8 @@ addons: before_install: script: - sh build.sh +before_deploy: + - ./ci/hashgen.sh deploy: provider: releases api_key: @@ -19,6 +21,11 @@ deploy: - "./of-watchdog-arm64" - "./of-watchdog-darwin" - "./of-watchdog.exe" + - "./of-watchdog.sha256" + - "./of-watchdog-armhf.sha256" + - "./of-watchdog-arm64.sha256" + - "./of-watchdog-darwin.sha256" + - "./of-watchdog.exe.sha256" skip_cleanup: true on: tags: true diff --git a/ci/hashgen.sh b/ci/hashgen.sh new file mode 100755 index 00000000..83863965 --- /dev/null +++ b/ci/hashgen.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +for f in of-watchdog*; do shasum -a 256 $f > $f.sha256; done \ No newline at end of file