Last active
October 15, 2018 17:11
-
-
Save clivecorbishley/851fcb07307ccccdfab4676c0ceb8628 to your computer and use it in GitHub Desktop.
Version Tracking Travis config
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
--- | |
... | |
env: | |
global: | |
- APP_VERSION=3.23 | |
... | |
jobs: | |
include: | |
- stage: Deploy | |
before_deploy: | |
- git config --global user.email "builds@travis-ci.com" | |
- git config --global user.name "Travis CI" | |
- export VERSION_NUMBER=$ZADEV_VERSION.$TRAVIS_BUILD_NUMBER | |
- git tag $VERSION_NUMBER -a -m "Generated tag from TravisCI for build $TRAVIS_BUILD_NUMBER" | |
- git push -q https://$TAGPERM@github.com/<Organisation>/<Repository> --tags | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment