-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To allow ignoring exit codes, move the before_deploy logic into its o…
…wn script
- Loading branch information
1 parent
7f81726
commit 76fecbd
Showing
2 changed files
with
25 additions
and
7 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
# | ||
# I would like every successful build on the master branch to upload the | ||
# generated binaries to a "prerelease" tag on github - thus making the files | ||
# avilable to any interested parties | ||
# | ||
# This requires working around travis-CI | ||
|
||
if [ -n "$TRAVIS_TAG" ]; then | ||
echo TRAVIS_TAG is already set, this commit is already tagged | ||
exit 0 | ||
fi | ||
|
||
git config --local user.name "Automated Dummy User" | ||
git config --local user.email "noreply@example.com" | ||
git remote set-url origin https://${TRAVIS_REPO_SLUG%%/*}:$GITHUB_TOKEN@github.com/$TRAVIS_REPO_SLUG | ||
|
||
git tag --force prerelease | ||
git push --force --tags | ||
|
||
exit 1 | ||
|
||
# The travis before_deploy script can detect this exit code: | ||
# - ./scripts/travis_before_deploy || export TRAVIS_TAG=prerelease |