Skip to content
This repository has been archived by the owner on Feb 15, 2021. It is now read-only.

Commit

Permalink
Merge pull request #55 from amreo/master
Browse files Browse the repository at this point in the history
Removed latest tagging travis
  • Loading branch information
amreo committed May 21, 2020
2 parents bd13bd7 + 6d4683d commit dc4ebd0
Showing 1 changed file with 15 additions and 20 deletions.
35 changes: 15 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ env:
- GOFLAGS='-a -x'
- WORKSPACE='/project'

branches:
except:
- /^latest$/

matrix:
include:
- go: 1.3.x
Expand Down Expand Up @@ -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
- 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

0 comments on commit dc4ebd0

Please sign in to comment.