From df1d5c9dcc69f2ee727d55be3f3f5373c03b2e62 Mon Sep 17 00:00:00 2001 From: Matt Kubilus Date: Sun, 28 Jul 2019 16:27:09 -0400 Subject: [PATCH] Release on tag --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4d06aff..4f8c55e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -55,7 +55,7 @@ jobs: - run: name: Upload release bins command: | - REL_URL=$(curl -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/repos/kubilus1/gendev/releases/tags/0.0.0 | jq -r '.upload_url' | sed -e 's/{?name,label}/?name=/g') + REL_URL=$(curl -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/repos/kubilus1/gendev/releases/tags/${CIRCLE_TAG} | jq -r '.upload_url' | sed -e 's/{?name,label}/?name=/g') for PKG in $(ls ./dist/*); do PKG_NAME=$(basename $PKG) curl -vvvv -XPOST --data-binary @${PKG} -H "Content-Type: application/octet-stream" -H "Authorization: token ${GITHUB_TOKEN}" ${REL_URL}${PKG_NAME}