Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 28 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,31 @@ jobs:
steps:
- setup_build_environment
- run: make muzzle
release-publish:

release-bintray-publish:
docker:
- image: circleci/openjdk:11.0.6-jdk-buster
steps:
- setup_build_environment
- run: echo "Releasing version" && ./gradlew printVersion
- run: ./gradlew publish
- run: mkdir -p artifacts >/dev/null 2>&1
- run: cp javaagent/build/libs/*-all.jar artifacts/
- persist_to_workspace:
root: .
paths:
- artifacts

release-github-publish:
docker:
- image: cibuilds/github:0.13
steps:
- attach_workspace:
at: ./artifacts
- run:
name: "Publish Release on GitHub"
command: |
ghr -t ${GH_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -n "Release ${CIRCLE_TAG}" -b "..." --soft ${CIRCLE_TAG} ./artifacts/*-all.jar

workflows:
version: 2
Expand All @@ -59,7 +77,7 @@ workflows:
filters:
tags:
only: /.*/
- release-publish:
- release-bintray-publish:
context: hypertrace-publishing
requires:
- build
Expand All @@ -69,3 +87,11 @@ workflows:
ignore: /.*/
tags:
only: /^[0-9]+\.[0-9]+\.[0-9]+/
- release-github-publish:
requires:
- release-bintray-publish
filters:
branches:
ignore: /.*/
tags:
only: /^[0-9]+\.[0-9]+\.[0-9]+/