Dpl: github releases: pre-release support

Created on 18 Mar 2015  路  9Comments  路  Source: travis-ci/dpl

I'm not sure what the best way to provide support for this would be, but I would like to be able to mark releases as pre-releases on github.

Two options I can think of:

  • ability to simply mark all releases deployed by dpl as pre-release. the user can update them later to full releases by some other mechanism
  • ability to specify pre-release for a given set of branch names. any releases from these branches would be marked as pre-release, otherwise as release.

I would prefer some version of option 2, if possible.

releases (GitHub Releases)

Most helpful comment

As @BanzaiMan mentioned just adding prerelease: true under the deploy section makes release to be marked as pre-release.
example:

deploy:
  provider: releases
  prerelease: true
  api_key: ....

no support for conditional though..

All 9 comments

:+1:

It appears to me that it's a straightforward case of passing prerelease: true to the payload. https://developer.github.com/v3/repos/releases/#create-a-release

Rule-based prerelease might be easier, since otherwise I suspect tweaking .travis.yml for each prerelease becomes a hassle.

+1

+1

As @BanzaiMan mentioned just adding prerelease: true under the deploy section makes release to be marked as pre-release.
example:

deploy:
  provider: releases
  prerelease: true
  api_key: ....

no support for conditional though..

@orius123 Does that work right now? It's not in the documentation. Or were you saying it should work like that? I'd like to have this..

Dunno.. haven't tried for a while now.. worked back then.

Just tried and it seems to work fine. Would be nice to see it in the docs.

Was this page helpful?
0 / 5 - 0 ratings