Skip to content

Commit

Permalink
Push a tag so that releases are named under the tag name.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanVanAtta committed Sep 3, 2019
1 parent 389c3a3 commit f60d465
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ install: skip
script:
- ./.travis/run_optipng
- ./.travis/zip_assets
- ./.travis/push_tag
deploy:
provider: releases
api_key: "$BOT_AUTH_TOKEN"
Expand Down
14 changes: 14 additions & 0 deletions .travis/push_tag
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

## Releases will be created under the latest tag pushed, or Travis
## will create a name for the tag automatically if there is none.
## The tag name is part of the download URL, naming and pushing a
## tag keeps the download URL predictable and easier to update.

readonly REPO_URL="https://${BOT_AUTH_TOKEN}@github.com/triplea-game/assets.git"
git config --global user.email "tripleabuilderbot@gmail.com"
git config --global user.name "tripleabuilderbot"

git tag "$TRAVIS_BUILD_NUMBER" -a -f -m "$TAG_VALUE"
git push -q "$REPO_URL" --tags

0 comments on commit f60d465

Please sign in to comment.