-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more location fix in tests, add release script
- Loading branch information
Showing
8 changed files
with
43 additions
and
24 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
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
export GITHUB_REPO="dsiem" | ||
export GITHUB_USER="defenxor" | ||
|
||
[ "$1" == "" ] && echo need semver version as 1st argument, and optional pre-release flag as 2nd argument. Example $0 v0.1.0 pre && exit 1 | ||
ver="$1" | ||
[ "$2" == "pre" ] && pre="-p" | ||
|
||
read -p "This will create a git tag and release for $1. Are you sure? " -n 1 -r | ||
echo | ||
if [[ ! $REPLY =~ ^[Yy]$ ]]; then | ||
[[ "$0" = "$BASH_SOURCE" ]] && exit 1 || return 1 | ||
fi | ||
|
||
./scripts/gobuild-cmd-release.sh || (echo failed to build release files && exit 1) | ||
|
||
git tag -a $ver | ||
github-release release -t $ver $pre || (echo failed to create github release && exit 1) | ||
|
||
for f in $(ls ./temp/release/$ver); do | ||
github-release upload -t $ver -f ./temp/release/$ver/$f -n $f | ||
done | ||
|