travis: fixed --skip-publish logic
@@ -95,9 +95,18 @@ ifeq ($(sign_gpg),0)
GORELEASER_OPTIONS+=--skip-sign
endif
+publish_binaries=1
+
ifeq ($(TRAVIS_TAG),)
# not a tagged release
GORELEASER_OPTIONS+=--snapshot
+ publish_binaries=0
+endif
+
+ifneq ($(TRAVIS_OS_NAME),linux)
+ publish_binaries=0
+endif
+ifeq ($(publish_binaries),0)
GORELEASER_OPTIONS+=--skip-publish
endif
