diff --git a/Makefile b/Makefile
index 26156a59b749a3f3fd43dde04e039c81b4742867..658abb79d69198ae4edb573220100f369a2f1a4d 100644
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,7 @@ build: golang
 release: clean golang deps
 	@mkdir -p release
 	$(foreach GOOS, $(PLATFORMS),\
-	$(foreach GOARCH, $(ARCHITECTURES), $(shell [ $(GOOS) = "windows" ]  && EXT=".exe"; env GOOS=$(GOOS) GOARCH=$(GOARCH) CGO_ENABLED=0 \
+	$(foreach GOARCH, $(ARCHITECTURES), $(shell [ $(GOOS) = "windows" ]  && EXT=".exe"; env GOOS=$(GOOS) GOARCH=$(GOARCH) CGO_ENABLED=0; \
 	go build -a -tags netgo -ldflags "-w ${LFLAGS}" -o bin/${NAME}$$EXT; \
 	tar -czvf release/${NAME}-$(GOOS)-$(GOARCH).tar.gz -C bin/ ${NAME}$$EXT >/dev/null; \
   sha1sum release/${NAME}-$(GOOS)-$(GOARCH).tar.gz | cut -d " " -f1 > release/${NAME}-$(GOOS)-$(GOARCH).tar.gz.sha1 )))
diff --git a/release.sh b/release.sh
new file mode 100755
index 0000000000000000000000000000000000000000..7770b227366080836f50bd4c15083fab477cc8c4
--- /dev/null
+++ b/release.sh
@@ -0,0 +1,30 @@
+#!/bin/bash -e
+
+DIR="$PWD"
+VERSION=`./get-version.sh`
+echo "Version: $VERSION"
+
+TMP=`mktemp -d`
+export GOPATH=$TMP/go
+
+mkdir -p $GOPATH/src/github.com/keycloak
+ln -s $DIR $GOPATH/src/github.com/keycloak/keycloak-gatekeeper
+cd $GOPATH/src/github.com/keycloak/keycloak-gatekeeper
+
+echo "------------------------------------------------------------------------------------------------------------"
+echo "Building:"
+echo ""
+
+make release --trace
+
+
+echo "------------------------------------------------------------------------------------------------------------"
+echo "Upload to jboss.org:"
+echo ""
+
+rsync -rv --protocol=28 $RELDIR/keycloak-gatekeeper/release/* keycloak@filemgmt.jboss.org:/downloads_htdocs/keycloak/$VERSION/gatekeeper/
+
+
+echo "------------------------------------------------------------------------------------------------------------"
+echo "Done"
+echo "------------------------------------------------------------------------------------------------------------"