Apply GH release for master branch only. Removing version file from published release.
@@ -43,6 +43,7 @@ jobs:
command: |
go get github.com/tcnksm/ghr
VERSION=$(cat ./build/libs/version.txt)
+ rm ./build/libs/version.txt
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} ./build/libs/
workflows:
@@ -53,6 +54,6 @@ workflows:
- publish-github-release:
filters:
branches:
- only: develop
+ only: master
requires:
- build
\ No newline at end of file
