added deploy

This commit is contained in:
ori agranat
2019-11-19 22:16:25 +02:00
parent f8f1a27e15
commit 6e1849fc29

View File

@@ -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
- build_ui
- deploy:
requires:
- build_jar