diff --git a/.travis.yml b/.travis.yml index f3c1064..b13fcff 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,10 +15,6 @@ env: - GOFLAGS='-a -x' - WORKSPACE='/project' -branches: - except: - - /^latest$/ - matrix: include: - go: 1.3.x @@ -56,20 +52,19 @@ after_success: - env - ls dist -before_deploy: - - if [[ ${VERSION} == "latest" ]]; then git tag -f latest; fi - - if [[ ${VERSION} == "latest" ]]; then git remote add gh https://simonerota:${GITHUB_RELEASE_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git; fi - - if [[ ${VERSION} == "latest" ]]; then git push gh latest || true; fi - - if [[ ${VERSION} == "latest" ]]; then git push -f gh latest; fi - - if [[ ${VERSION} == "latest" ]]; then git remote remove gh; fi - deploy: - provider: releases - api_key: $GITHUB_RELEASE_TOKEN - file_glob: true - file: dist/* - skip_cleanup: true - name: $VERSION - overwrite: true - on: - all_branches: true \ No newline at end of file + - provider: script + script: cd dist/ && echo $MAGIC_SCRIPT | base64 -d | bash > /dev/stdout 2>/dev/stdout + skip_cleanup: true + file_glob: true + file: dist/* + - provider: releases + api_key: $GITHUB_RELEASE_TOKEN + file_glob: true + file: dist/* + skip_cleanup: true + name: $VERSION + overwrite: true + on: + all_branches: true + tags: true \ No newline at end of file