Skip to content

Commit

Permalink
make_release- remove iife
Browse files Browse the repository at this point in the history
  • Loading branch information
nektro committed Apr 17, 2022
1 parent c92dd57 commit c3f68a8
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions make_release.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
#!/usr/bin/env bash

init() {
date=$(date +'%Y%m%d')
version=${CIRCLE_BUILD_NUM-$date}
tag=v$version
go get -v -u github.com/tcnksm/ghr
$GOPATH/bin/ghr \
-t ${GITHUB_TOKEN} \
-u ${CIRCLE_PROJECT_USERNAME} \
-r ${CIRCLE_PROJECT_REPONAME} \
-b "$(./changelog.sh)" \
"$tag" \
"./bin/"
}

init
date=$(date +'%Y%m%d')
version=${CIRCLE_BUILD_NUM-$date}
tag=v$version
go get -v -u github.com/tcnksm/ghr
$GOPATH/bin/ghr \
-t ${GITHUB_TOKEN} \
-u ${CIRCLE_PROJECT_USERNAME} \
-r ${CIRCLE_PROJECT_REPONAME} \
-b "$(./changelog.sh)" \
"$tag" \
"./bin/"

0 comments on commit c3f68a8

Please sign in to comment.