Skip to content

Commit

Permalink
Deploy to github release (#1)
Browse files Browse the repository at this point in the history
Add github release deployment
  • Loading branch information
asasmoyo authored Dec 20, 2017
1 parent 3eee2be commit 8717207
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,16 @@ install:
- glide install

script:
- make build
- make build-ci

deploy:
provider: releases
api_key: $GITHUB_TOKEN
file:
- bin/sharelatex2git-linux
- bin/sharelatex2git-darwin
skip_cleanup: true
on:
tags: true
condition: $TRAVIS_GO_VERSION =~ ^1\.9\.[0-9]+$

6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ build:
mkdir -p bin
go build -o bin/sharelatex2git github.com/asasmoyo/sharelatex2git/cmd/sharelatex2git

.PHONY: build-ci
build-ci:
mkdir -p bin
env GOOS=linux GOARCH=amd64 go build -o bin/sharelatex2git-linux github.com/asasmoyo/sharelatex2git/cmd/sharelatex2git
env GOOS=darwin GOARCH=amd64 go build -o bin/sharelatex2git-darwin github.com/asasmoyo/sharelatex2git/cmd/sharelatex2git

.PHONY: deps
deps:
go get github.com/Masterminds/glide
Expand Down

0 comments on commit 8717207

Please sign in to comment.