Super simple uploading of continuous builds (each push) to GitHub Releases. If this is not the easiest way to upload continuous builds to GitHub Releases, then it is a bug.
Upon each run, this script will delete any pre-existing release and tag with the name
continuous, create a new one, and upload the specified binaries there.
- On https://github.com/settings/tokens, click on "Generate new token" and generate a token with at least the
- On Travis CI, go to the settings of your project at
- Under "Environment Variables", add key
GITHUB_TOKENand the token you generated above as the value. Make sure that "Display value in build log" is set to "OFF"
- In the
.travis.ymlof your GitHub repository, add something like this (assuming the build artifacts to be uploaded are in out/):
after_success: - ls -lh out/* # Assuming you have some files in out/ that you would like to upload - wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh - bash ./upload.sh out/* branches: except: - # Do not build tags that we create when we upload to GitHub Releases - /^(?i:continuous)$/