Skip to content

Cannot use environment variable to set deploy.prerelease in .travis.yml #613

@Librazy

Description

@Librazy

I tried to automate my github prerelease/release deploy. I wish I could ship a release when my commit message start with some magic chars. So I wrote some bash script in before_deploy to set up a environment variable GHTHUB_DEPLOY_PRERELEASE, and set deploy.prerelease to

  prerelease: $GHTHUB_DEPLOY_PRERELEASE

everything works fine when preparing deploy.
But it says

For 'properties/prerelease', "false" is not a boolean. // See: https://developer.github.com/v3

when deploying application.

full log:
https://travis-ci.org/Librazy/TooltipFilter/builds/222308618

.travis.yml:
https://github.com/Librazy/TooltipFilter/blob/d767b946acd87a701e886c9d282032558e001917/.travis.yml

……Seems that environment variables are always strings?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions