From 6e1849fc295c9ef81754238ce8b02b5a4e336a37 Mon Sep 17 00:00:00 2001 From: ori agranat Date: Tue, 19 Nov 2019 22:16:25 +0200 Subject: [PATCH] added deploy --- .circleci/config.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 18fee0e3d..c361101ce 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -12,8 +12,6 @@ jobs: - run: npm install - run: npm run build - # - store_artifacts: - # path: dist/ - persist_to_workspace: root: . paths: @@ -36,6 +34,18 @@ jobs: - store_artifacts: path: target/ + deploy: + docker: + - image: cibuilds/github:0.10 + steps: + - attach_workspace: + at: ./ + - run: + name: Publish Release on GitHub" + command: | + VERSION=$(find . -name 'chameleon-vision-*.jar' | sed 's/.*chameleon-vision-//; s/.jar//' ) + ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} ./$(find . -name "chameleon-vision-*") + workflows: version: 2 release: @@ -43,4 +53,7 @@ workflows: - build_ui - build_jar: requires: - - build_ui \ No newline at end of file + - build_ui + - deploy: + requires: + - build_jar \ No newline at end of file