From ca2a199033f322c0881ab9d1efea32f2bdec1523 Mon Sep 17 00:00:00 2001 From: ivan-aksamentov Date: Fri, 30 Apr 2021 13:06:41 +0200 Subject: [PATCH] chore: fix github release script --- scripts/publish_github_releases.sh | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/scripts/publish_github_releases.sh b/scripts/publish_github_releases.sh index d6a0fd7fe..450c1fde4 100755 --- a/scripts/publish_github_releases.sh +++ b/scripts/publish_github_releases.sh @@ -13,17 +13,12 @@ trap "exit" INT : "${CIRCLE_PROJECT_REPONAME}" : "${CIRCLE_SHA1}" -export ARTIFACTS=".out/bin/" -export VERSION=$(cat VERSION) +export ARTIFACTS=.out/bin +export VERSION="$(cat VERSION)" export TAG="${VERSION}" PATH="${PATH}:." -ghr \ - -token ${GITHUB_TOKEN} \ - -username ${CIRCLE_PROJECT_USERNAME} \ - -repository ${CIRCLE_PROJECT_REPONAME} \ - -commitish ${CIRCLE_SHA1} \ - -replace \ - ${TAG} \ - ${ARTIFACTS} +echo "Releasing as '${TAG}' : $(ls ${ARTIFACTS}/ | xargs)" + +ghr -token ${GITHUB_TOKEN} -username ${CIRCLE_PROJECT_USERNAME} -repository ${CIRCLE_PROJECT_REPONAME} -commitish ${CIRCLE_SHA1} -replace ${TAG} ${ARTIFACTS}