Skip to content

Commit

Permalink
circle-ci-test
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangMau committed Jan 20, 2018
1 parent 0ec728c commit 4acea8b
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .circleci/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
version: 2
jobs:
build:
docker:
- image: circleci/golang:1.9
working_directory: /go/src/github.com/WolfgangMau/chamgo
steps:
- checkout
- run: make
- store_artifacts:
path: ./build
release:
docker:
- image: circleci/golang:1.9
working_directory: /go/src/github.com/WolfgangMau/chamgo
steps:
- checkout
- run: make package
- run: go get github.com/aktau/github-release
- run: github-release info --user ${CIRCLE_PROJECT_USERNAME} --repo ${CIRCLE_PROJECT_REPONAME}
- run: github-release release --user ${CIRCLE_PROJECT_USERNAME} --repo ${CIRCLE_PROJECT_REPONAME} --tag ${CIRCLE_TAG} --name ${CIRCLE_TAG} --description ${CIRCLE_TAG} --pre-release
- run: for f in build/*.tar.gz; do github-release upload --user ${CIRCLE_PROJECT_USERNAME} --repo ${CIRCLE_PROJECT_REPONAME} --tag ${CIRCLE_TAG} --name `basename ${f}` --file ${f}; done
- run: github-release edit --user ${CIRCLE_PROJECT_USERNAME} --repo ${CIRCLE_PROJECT_REPONAME} --tag ${CIRCLE_TAG} --name ${CIRCLE_TAG} --description ${CIRCLE_TAG}

workflows:
version: 2
build_and_release:
jobs:
- build:
filters:
tags:
only: /.*/
- release:
requires:
- build
filters:
tags:
only: /v[0-9]+(\.[0-9]+)*(-.*)*/
branches:
ignore: /.*/

0 comments on commit 4acea8b

Please sign in to comment.