fix: mac build script

This commit is contained in:
Lakhan Samani 2021-09-11 22:32:18 +05:30
parent a6a46b8d95
commit 82991b9949

View File

@ -1,7 +1,7 @@
VERSION="$1"
# make clean && CGO_ENABLED=1 make
make clean && CGO_ENABLED=1 make
FILE_NAME=authorizer-${VERSION}-darwin-amd64.tar.gz
# tar cvfz ${FILE_NAME} .env app build templates
tar cvfz ${FILE_NAME} .env app build templates
AUTH="Authorization: token $GITHUB_TOKEN"
RELASE_INFO=$(curl -sH "$AUTH" https://api.github.com/repos/authorizerdev/authorizer/releases/tags/${VERSION})
echo $RELASE_INFO