Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanleo committed Mar 10, 2019
2 parents 22f7b43 + d7b45d8 commit fb77f27
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
version: 2
jobs:
build:
docker:
- image: circleci/golang:1.12
working_directory: /go/src/github.com/bottleneckco/radio-clerk
environment:
GO111MODULE: 'on'
steps:
- checkout

# specify any bash command here prefixed with `run: `
- run: go mod download
- run: go build -a -o radio-clerk-linux64 .
# - run: env GOOS=linux GOARCH=386 go build -a -o radio-clerk-linux32 .
# - run: env GOOS=windows GOARCH=386 go build -a -o radio-clerk-win32.exe .
- run: env GOOS=windows GOARCH=amd64 go build -a -o radio-clerk-win64.exe .
- run: env GOOS=darwin GOARCH=amd64 go build -a -o radio-clerk-darwin .
- persist_to_workspace:
root: .
paths:
- radio-clerk-*
deploy:
docker:
- image: circleci/golang:1.12
working_directory: /tmp
steps:
- attach_workspace:
at: ./artifacts
- run:
name: "Publish Release on GitHub"
command: |
go get github.com/tcnksm/ghr
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete "${CIRCLE_SHA1}-${CIRCLE_BUILD_NUM}" ./artifacts/
workflows:
version: 2
build-and-deploy:
jobs:
- build
- deploy:
requires:
- build
filters:
branches:
only: master
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# radio-clerk
[![CircleCI](https://circleci.com/gh/bottleneckco/radio-clerk/tree/master.svg?style=svg)](https://circleci.com/gh/bottleneckco/radio-clerk/tree/master)
Discord music bot, written in Golang

### Requirements
Expand Down

0 comments on commit fb77f27

Please sign in to comment.