diff --git a/.circleci/config.yml b/.circleci/config.yml index 461a81e..7ad5898 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,3 +11,27 @@ jobs: - store_artifacts: path: kafkacat.txz destination: kafkacat.txz + + publish-github-release: + docker: + - image: cibuilds/github:0.10 + steps: + - attach_workspace: + at: ./artifacts + - run: + name: "Publish Release on GitHub" + command: ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${CIRCLE_TAG} ./artifacts/ + +workflows: + version: 2 + main: + jobs: + - build: + - publish-github-release: + requires: + - build + filters: + branches: + ignore: /.*/ + tags: + only: /^\d+\.\d+\.\d+-\d+$/