I am new to Travis CI, but I found my way through it using my documents. However, deployment on GitHub releases does not work for me. My file is .travis.ymlas follows:
language: java
branches:
only:
- master
notifications:
email: false
before_deploy:
- export RELEASE_JAR_FILE=$(ls build/libs/*.jar)
- echo "Deploying $RELEASE_JAR_FILE to GitHub"
deploy:
provider: releases
api_key:
secure: [key]
file_glob: true
file: "${RELEASE_JAR_FILE}"
skip_cleanup: true
on:
repo: [my-repo]
tags: true
all_branches: true
Here, as I commit:
$ git add . && git commit -m "my message"
$ git tag 0.1234
$ git push origin --tags
$ git push origin master
After that, Travis creates the assembly and skips the deployment using
Skipping a deployment with the releases provider because this is not a tagged commit
When I open my GitHub repository in my browser, the releases are flagged correctly, but Travis does not detect them as flagged.
- ? , branches: only: master , Travis GitHub on: tags: true. , , , .