Skip to content

Commit

Permalink
feature: publish artifacts on github
Browse files Browse the repository at this point in the history
Closes #1
  • Loading branch information
albx79 committed Dec 12, 2019
1 parent 8eafa2e commit b3495b8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,14 @@ jobs:
command: cargo test --all
- store_artifacts:
path: target/x86_64-unknown-linux-musl/release/what-bump
publish-github-release:
docker:
- image: cibuilds/github:0.10
steps:
- attach_workspace:
at: ./artifacts
- run:
name: Publish Release on GitHub
command: |
VERSION=$(what-bump --version)
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} ./artifacts/
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b3495b8

Please sign in to comment.