Skip to content

Commit

Permalink
chore: fix github release script
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-aksamentov committed Apr 30, 2021
1 parent e319b05 commit ca2a199
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions scripts/publish_github_releases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}

1 comment on commit ca2a199

@vercel
Copy link

@vercel vercel bot commented on ca2a199 Apr 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.