-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from longdog/master
Build binaries in CI and publish in github releases
- Loading branch information
Showing
4 changed files
with
56 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
language: go | ||
sudo: false | ||
|
||
os: | ||
- linux | ||
|
||
go: | ||
- 1.13 | ||
|
||
script: | ||
# Windows 386 build | ||
- GOOS=windows GOARCH=386 VERSION=${TRAVIS_TAG} make release | ||
# Windows amd64 build | ||
- GOOS=windows GOARCH=amd64 VERSION=${TRAVIS_TAG} make release | ||
# Linux 386 build | ||
- GOOS=linux GOARCH=386 VERSION=${TRAVIS_TAG} make release | ||
# Linux amd64 build | ||
- GOOS=linux GOARCH=amd64 VERSION=${TRAVIS_TAG} make release | ||
# Darwin amd64 build | ||
- GOOS=darwin GOARCH=amd64 VERSION=${TRAVIS_TAG} make release | ||
|
||
deploy: | ||
provider: releases | ||
api_key: ${GITHUB_TOKEN} | ||
file: | ||
- release/underblog-*.zip | ||
- release/underblog-*.tar.gz | ||
on: | ||
tags: true | ||
file_glob: true | ||
skip_cleanup: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
// +build linux darwin | ||
// +build !windows | ||
|
||
package internal | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
version = 0.2 | ||
VERSION ?= 0.2 |