-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setup travis deploy to github when push release tags (#1163)
- Loading branch information
Showing
3 changed files
with
49 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env bash | ||
set -ex | ||
|
||
VERSION=$(git describe --always --tags --long) | ||
PLATFORM="" | ||
|
||
if [[ ${TRAVIS_OS_NAME} == 'linux' ]]; then | ||
PLATFORM="linux" | ||
elif [[ ${TRAVIS_OS_NAME} == 'osx' ]]; then | ||
PLATFORM="darwin" | ||
else | ||
PLATFORM="windows" | ||
exit 1 | ||
fi | ||
|
||
env GO111MODULE=on make ontology-${PLATFORM} tools-${PLATFORM} | ||
mkdir tool-${PLATFORM} | ||
cp ./tools/abi/* tool-${PLATFORM} | ||
cp ./tools/sigsvr* tool-${PLATFORM} | ||
|
||
zip -q -r tool-${PLATFORM}.zip tool-${PLATFORM}; | ||
rm -r tool-${PLATFORM}; | ||
|
||
set +x | ||
echo "ontology-${PLATFORM}-amd64 |" $(md5sum ontology-${PLATFORM}-amd64|cut -d ' ' -f1) | ||
echo "tool-${PLATFORM}.zip |" $(md5sum tool-${PLATFORM}.zip|cut -d ' ' -f1) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters