Skip to content

Commit

Permalink
Add sha256 has to ci deploy binaries
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Gee <[email protected]>
  • Loading branch information
rgee0 authored and alexellis committed Nov 15, 2018
1 parent b899713 commit 8df2b25
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ faster
of-watchdog*
build
template
**/*.sha256

7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ addons:
before_install:
script:
- sh build.sh
before_deploy:
- ./ci/hashgen.sh
deploy:
provider: releases
api_key:
Expand All @@ -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
3 changes: 3 additions & 0 deletions ci/hashgen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

for f in of-watchdog*; do shasum -a 256 $f > $f.sha256; done

0 comments on commit 8df2b25

Please sign in to comment.