Discard git changes when doing a release on travis

This commit is contained in:
Ken-Håvard Lieng 2018-11-17 12:34:12 +01:00
parent 96f18117bd
commit 2c1a6f2c44
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ script:
deploy:
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash
script: git checkout -- . && curl -sL https://git.io/goreleaser | bash
on:
tags: true
condition: $TRAVIS_OS_NAME = linux && $TRAVIS_GO_VERSION = 1.*