11

I'd like to deploy files using Travis CI and it only works for a tagged commit. When committing to the branch, there is a warning:

Skipping a deployment with the releases provider because this is not a tagged commit.

Is there any way to deploy on branched commit using Travis CI?

To clarify, it works when I tag the commit, but I'd like to deploy files on each commit for the given branch.

2
  • 1
    Have you tried tagging the commit? Feb 28, 2017 at 18:20
  • It works for the tags, but I'd like to deploy files on every commit.
    – kenorb
    Feb 28, 2017 at 18:20

2 Answers 2

6

Instead of using Travis' deployment features, build the deployment logic in to your normal "test" script(s). For a PaaS this might be as simple as pushing to another git remote if all tests pass, but the sky is the limit.

4

Travis CI supports deployment on branch release by using the following syntax:

deploy:
  on:
    branch: release

The problem is that GitHub does not support it.

As per GitHub Releases Uploading page at Travis CI:

Please note that deploying GitHub Releases works only for tags, not for branches.

For GitHub the only workaround is to push tags (e.g. git push origin master --tags).

Or solution is to use different supported provider.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.