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:
70
70
71
71
publish-github-release :
72
72
docker :
73
- - image : cibuilds/github:0.10
73
+ - image : circleci/golang:1.12
74
74
steps :
75
75
- attach_workspace :
76
76
at : ./artifacts
77
77
- run :
78
78
name : " Publish Release on GitHub"
79
79
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
82
84
83
85
workflows :
84
86
version : 2
85
- tagged-build :
87
+ workflow :
86
88
jobs :
87
89
- build :
88
90
filters :
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ func main() {
27
27
28
28
switch {
29
29
case * printVersion :
30
- fmt .Printf ("%s %s (golang %s)\n " , os . Args [ 0 ] , version , goVersion )
30
+ fmt .Printf ("%s (golang %s)\n " , version , goVersion )
31
31
os .Exit (0 )
32
32
}
33
33
You can’t perform that action at this time.
0 commit comments