Skip to content

Commit

Permalink
Merge branch 'master' into next-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
NickGeek authored Jan 8, 2019
2 parents f4b273c + 6772372 commit 0fee985
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ jobs:
root: app/
paths:
- build/*
- micropad.tar.xz

deploy:
docker:
Expand All @@ -84,12 +85,40 @@ jobs:

- run: rsync -aue "ssh -p 1276 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" app/build/* $SSH_PATH

publish-github-release:
docker:
- image: cibuilds/github:0.12

steps:
- attach_workspace:
at: ~/repo/app
- run:
name: "Publish Release on GitHub"
command: |
VERSION=${CIRCLE_TAG}
ghr -t ${GH_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} ~/repo/app/micropad.tar.xz
workflows:
version: 2
test-and-deploy:
jobs:
- test
- build
- test:
filters:
tags:
only: /^v.*/
- build:
filters:
tags:
only: /^v.*/
- publish-github-release:
requires:
- test
- build
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/
- deploy:
requires:
- test
Expand Down

0 comments on commit 0fee985

Please sign in to comment.