This repository was archived by the owner on Mar 15, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 4848 name : Release
4949 command : |
5050 export GOVERSION=$(go version | awk '{sub("^go","",$3);print $3;}')
51- scripts/goreleaser --rm-dist --skip-publish ${CIRCLE_TAG:-"--snapshot"}
52- rm -rf $(find ./dist/* -type d) || true
51+ [ -n "$CIRCLE_TAG" ] || tagargs="--snapshot"
52+ scripts/goreleaser --rm-dist --skip-publish $tagargs
53+ rm -rf $(find ./dist/* -type d) dist/config.yaml || true
5354 - store_test_results :
5455 path : test-results/
5556 - store_artifacts :
8283 name : " Publish Release on GitHub"
8384 command : |
8485 go get github.com/tcnksm/ghr
85- VERSION= $(echo artifacts/vault-plugin-splunk_*_*.zip | awk -F_ '{print $2;exit;}')
86- ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -recreate ${VERSION } ./artifacts/
86+ TAG=v $(echo artifacts/vault-plugin-splunk_*_*.zip | awk -F_ '{print $2;exit;}')
87+ ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -recreate ${TAG } ./artifacts/
8788
8889workflows :
8990 version : 2
You can’t perform that action at this time.
0 commit comments