Skip to content

Commit

Permalink
Try to push releases to github
Browse files Browse the repository at this point in the history
  • Loading branch information
slurdge committed Mar 2, 2020
1 parent b3a620b commit 2e45b0a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,25 @@ before_install:
git:
depth: 1

install:
install: true

script:
- go get -v ./...
- export BUILD_DATE=$(date +'%Y%m%d%H%M%S')
- export GIT_COMMIT=$(shell git rev-parse HEAD)
- export GIT_DIRTY=$(shell test -n "`git status --porcelain`" && echo "+CHANGES" || true)
- export CGO_ENABLED="0"
script:
- gox -osarch="linux/386 linux/amd64 linux/arm darwin/amd64 windows/amd64 windows/386" -output "build/{{.Dir}}_{{.OS}}_{{.Arch}}" -ldflags "-X github.com/slurdge/goeland/version.GitCommit=${GIT_COMMIT}${GIT_DIRTY} -X github.com/slurdge/goeland/version.BuildDate=${BUILD_DATE} -s -w"

before_deploy:
- gox -osarch="linux/386 linux/amd64 linux/arm darwin/amd64 windows/amd64 windows/386" -output "build/{{.Dir}}_{{.OS}}_{{.Arch}}" -ldflags "-X github.com/slurdge/goeland/version.GitCommit=${GIT_COMMIT}${GIT_DIRTY} -X github.com/slurdge/goeland/version.BuildDate=${BUILD_DATE} -s -w"

deploy:
provider: releases
api_key: ${GITHUB_DEPLOY_TOKEN}
file: ${TRAVIS_BUILD_DIR}/build/*
file: build/*
file_glob: true
skip_cleanup: true
on:
tags: true


notifications:
email:
Expand Down

0 comments on commit 2e45b0a

Please sign in to comment.