This repository was archived by the owner on Mar 15, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -70,19 +70,21 @@ jobs:
7070
7171 publish-github-release :
7272 docker :
73- - image : cibuilds/github:0.10
73+ - image : circleci/golang:1.12
7474 steps :
7575 - attach_workspace :
7676 at : ./artifacts
7777 - run :
7878 name : " Publish Release on GitHub"
7979 command : |
80- VERSION=$(artifacts/vault-plugin-splunk -version)
81- ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} ./artifacts/
80+ go get github.com/tcnksm/ghr
81+ VERSION=$(artifacts/vault-plugin-splunk -version | awk '{print $1}')
82+ zip -j vault-plugin-splunk artifacts/
83+ ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -recreate ${VERSION} ./vault-plugin-splunk.zip
8284
8385workflows :
8486 version : 2
85- tagged-build :
87+ workflow :
8688 jobs :
8789 - build :
8890 filters :
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ func main() {
2727
2828 switch {
2929 case * printVersion :
30- fmt .Printf ("%s %s (golang %s)\n " , os . Args [ 0 ] , version , goVersion )
30+ fmt .Printf ("%s (golang %s)\n " , version , goVersion )
3131 os .Exit (0 )
3232 }
3333
You can’t perform that action at this time.
0 commit comments