Trying a skip upload rule
1 files changed, 3 insertions(+), 0 deletions(-)

M .build.yml
M .build.yml +3 -0
@@ 10,9 10,12 @@ tasks:
   - build: |
       cd kbplug
       VERSION=`hg log -r tip --template '{bookmarks}'`
+      [[ $VERSION == "" ]] && VERSION=dev
       BUILDDATE=`date +%Y-%m-%dT%H%M%S`
       GOOS=linux go build -ldflags "-X main.Version=${VERSION} -X main.BuildDate=${BUILDDATE}" -v -o kbplug_${VERSION} .
   - upload: |
       cd kbplug
       VERSION=`hg log -r tip --template '{bookmarks}'`
+      # Skip this if it's not a release
+      [[ $VERSION == "" ]] && exit
       curl --netrc-file ~/.downloads -T kbplug_${VERSION} https://downloads.ser1.net/files/