Skip to content

Commit

Permalink
Update config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rfaircloth-splunk committed Oct 7, 2019
1 parent 079fcbe commit ad0177e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,14 @@ jobs:
- run:
name: "Publish Release on GitHub"
command: |
go get github.com/tcnksm/ghr
go get github.com/aktau/github-release
SEMVER=$(docker run --rm -v "$(pwd):/repo" gittools/gitversion:latest-linux-netcoreapp2.1 /repo /showvariable SemVer /nofetch)
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete v$SEMVER artifacts/
github-release upload \
--user ${CIRCLE_PROJECT_USERNAME} \
--repo ${CIRCLE_PROJECT_REPONAME} \
--tag $SEMVER \
--name "baremetal.tar" \
--file artifacts/baremetal.tar
publish-latest:
environment:
Expand Down

0 comments on commit ad0177e

Please sign in to comment.