I was able to successfully deploy the JAR from the maven project to Github using tags. However, the current configuration assumes that the JAR file name always remains unchanged, which is not the case. When I make a new release, it will change accordingly, so the deployment will fail.
Is there a way I can use wildcards in a YAML file? From what I found here on Stackoverflow and the web, wildcards are not supported in YAML. I could not find another hack for this without manipulating the .travis.yml file itself, which I would like to avoid.
The version string is available in pom.xml .
Current .travis.yml:
language: java jdk: - openjdk7 deploy: provider: releases api_key: secure: asfdsdflkjsdflkj... file: target/helloci-1.0-SNAPSHOT.jar on: repo: ktk/helloci all_branches: true tags: true
I could, of course, script that somehow, but then Travis CI will change its own configuration file, and I'm not sure if this will work and b) it is a good idea.
Repo I play with: https://github.com/ktk/helloci
github maven deployment travis-ci
Adrian Gschwend Sep 18 '14 at 15:04 2014-09-18 15:04
source share