Skip to content

Commit

Permalink
updated config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
TanklesXL committed Dec 15, 2018
1 parent 46022e9 commit 603f46b
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,37 +11,41 @@ jobs:
- checkout
- run: go get -v -t -d ./...
- run: go test -v ./...

deploy:
docker:
- image: circleci/golang:1.9
working_directory: /go/src/github.com/TanklesXL/FragCollector
steps:
- checkout
- go get -v -t -d ./...
- add_ssh_keys
- run: go get -u github.com/inconshreveable/mousetrap
- run: go get -u github.com/mitchellh/gox
- run: go get -u github.com/tcnksm/ghr
- run: go get -u github.com/stevenmatthewt/semantics
- run: go get -v -t -d ./...
- run:
name:cross compile
name: cross compile
command: |
gox -os="linux darwin windows" -arch="amd64" -output="dist/FragCollector_{{.OS}}_{{.Arch}}"
cd dist/ && gzip *
- add_ssh_keys
- run:
name:create release
name: create release
command: |
tag=$(semantics --output-tag)
if ["$tag"]; then
ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --replace $tag dist/
ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --replace $tag dist/
else
echo "The commit message(s) did not indicate a major/minor/patch version."
fi
workflows:
version: 2
build-deploy:
jobs:
-build
-deploy:
requires:
-build
filters:
branches:
only: master

- build
- deploy:
requires:
- build
filters:
branches:
only: master

0 comments on commit 603f46b

Please sign in to comment.