File tree Expand file tree Collapse file tree 3 files changed +12
-9
lines changed
Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 3232 - run :
3333 name : " Publish Release on GitHub"
3434 command : |
35- go get github.com/tcnksm/ghr
36- VERSION=$(sed -n -e 's/version:[ "]*\([^"]*\).*/\1/p' plugin.yaml)
37- ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} ./_dist/
35+ if [ "${CIRCLE_BRANCH}" == "master" ]; then
36+ go get github.com/tcnksm/ghr
37+ VERSION=$(sed -n -e 's/version:[ "]*\([^"]*\).*/\1/p' plugin.yaml)
38+ ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} ./_dist/
39+ ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete latest ./_dist/
40+ fi
3841
3942 - save_cache : # Store cache in the /go/pkg directory
4043 key : v1-pkg-cache
Original file line number Diff line number Diff line change @@ -35,13 +35,13 @@ dist:
3535 mkdir -p $(DIST )
3636 CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ${HELM_PLUGIN_NAME} -ldflags $(LDFLAGS ) ./cmd
3737 chmod +x ${HELM_PLUGIN_NAME}
38- tar -zcvf $(DIST ) /${HELM_PLUGIN_NAME} -linux- $( VERSION ) .tgz ${HELM_PLUGIN_NAME} README.md LICENSE plugin.yaml
38+ tar -zcvf $(DIST ) /${HELM_PLUGIN_NAME} -linux.tgz ${HELM_PLUGIN_NAME} README.md LICENSE plugin.yaml
3939 CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o ${HELM_PLUGIN_NAME} -ldflags $(LDFLAGS ) ./cmd
4040 chmod +x ${HELM_PLUGIN_NAME}
41- tar -zcvf $(DIST ) /${HELM_PLUGIN_NAME} -macos- $( VERSION ) .tgz ${HELM_PLUGIN_NAME} README.md LICENSE plugin.yaml
41+ tar -zcvf $(DIST ) /${HELM_PLUGIN_NAME} -macos.tgz ${HELM_PLUGIN_NAME} README.md LICENSE plugin.yaml
4242 CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o ${HELM_PLUGIN_NAME} .exe -ldflags $(LDFLAGS ) ./cmd
4343 chmod +x ${HELM_PLUGIN_NAME}
44- tar -zcvf $(DIST ) /${HELM_PLUGIN_NAME} -windows- $( VERSION ) .tgz ${HELM_PLUGIN_NAME} .exe README.md LICENSE plugin.yaml
44+ tar -zcvf $(DIST ) /${HELM_PLUGIN_NAME} -windows.tgz ${HELM_PLUGIN_NAME} .exe README.md LICENSE plugin.yaml
4545 rm ${HELM_PLUGIN_NAME}
4646 rm ${HELM_PLUGIN_NAME} .exe
4747
Original file line number Diff line number Diff line change @@ -59,19 +59,19 @@ appropriate version for your OS:
5959### Linux
6060
6161```sh
62- $ helm plugin install https://github.com/codacy/helm-ssm-linux-0.1.1 .tgz
62+ $ helm plugin install https://github.com/codacy/helm-ssm/releases/download/latest/helm-ssm-linux .tgz
6363```
6464
6565### MacOS
6666
6767```sh
68- $ helm plugin install https://github.com/codacy/helm-ssm-linux-0.1.1 .tgz
68+ $ helm plugin install https://github.com/codacy/helm-ssm/releases/download/latest/helm-ssm-macos .tgz
6969```
7070
7171### Windows
7272
7373```sh
74- $ helm plugin install https://github.com/codacy/helm-ssm-linux-0.1.1 .tgz
74+ $ helm plugin install https://github.com/codacy/helm-ssm/releases/download/latest/helm-ssm-windows .tgz
7575```
7676
7777### Developer (From Source) Install
You can’t perform that action at this time.
0 commit comments