I have created a simple travis configuration which packages an app and tries to deploy the archive file to github. The problem is, I would like to have the version number pa
Wildcards are supported by now if you enable the file_glob
option. This is how I deploy a build .deb
file to GitHub releases:
before_deploy:
- export RELEASE_PKG_FILE=$(ls *.deb)
- echo "deploying $RELEASE_PKG_FILE to GitHub releases"
deploy:
provider: releases
api_key:
secure: YOUR_ENCRYPTED_API_KEY
file_glob: true
file: "${RELEASE_PKG_FILE}"
on:
tags: true
Setting up is easy by executing travis setup releases
with a dummy filename and modifying .travis.yml
afterwards.
Sorry, wildcard patterns don't work at the moment, but we'll have a look into making that possible on Travis CI.
deploy:
file_glob: true
file: "build/distributions/worktrail-app-hub-sync*.zip"
example