Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Commit

Permalink
Only publish v* and tip* releases
Browse files Browse the repository at this point in the history
  • Loading branch information
galthaus committed Dec 1, 2017
1 parent 30b5a46 commit a2dd261
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tools/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

set -e

. tools/version.sh
version="$Prepart$MajorV.$MinorV.$PatchV$Extra-$GITHASH"

DOIT=0
if [[ $version =~ ^v || $version =~ ^tip ]] ; then
DOIT=1
fi
if [[ $DOIT == 0 ]] ;then
echo "Not a publishing branch."
exit 0
fi

[[ $GOPATH ]] || export GOPATH="$HOME/go"
fgrep -q "$GOPATH/bin" <<< "$PATH" || export PATH="$PATH:$GOPATH/bin"

Expand Down

0 comments on commit a2dd261

Please sign in to comment.