Skip to content

Commit 8df2b25

Browse files
rgee0alexellis
authored andcommitted
Add sha256 has to ci deploy binaries
Signed-off-by: Richard Gee <[email protected]>
1 parent b899713 commit 8df2b25

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ faster
1919
of-watchdog*
2020
build
2121
template
22+
**/*.sha256
2223

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ addons:
99
before_install:
1010
script:
1111
- sh build.sh
12+
before_deploy:
13+
- ./ci/hashgen.sh
1214
deploy:
1315
provider: releases
1416
api_key:
@@ -19,6 +21,11 @@ deploy:
1921
- "./of-watchdog-arm64"
2022
- "./of-watchdog-darwin"
2123
- "./of-watchdog.exe"
24+
- "./of-watchdog.sha256"
25+
- "./of-watchdog-armhf.sha256"
26+
- "./of-watchdog-arm64.sha256"
27+
- "./of-watchdog-darwin.sha256"
28+
- "./of-watchdog.exe.sha256"
2229
skip_cleanup: true
2330
on:
2431
tags: true

ci/hashgen.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
for f in of-watchdog*; do shasum -a 256 $f > $f.sha256; done

0 commit comments

Comments
 (0)