From charlesreid1

Revision as of 10:27, 27 November 2017 by Admin (talk | contribs) (Created page with "Set up Travis to perform releases by modifying travis.yml Choices: * Should travis build/upload a release with every commit? or only with tagged commits? Oh yeah, then there...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Set up Travis to perform releases by modifying travis.yml

Choices:

  • Should travis build/upload a release with every commit? or only with tagged commits?

Oh yeah, then there's OAuth.

OAuth Process

Travis can use encrypted environment variables, so to give Travis (and only Travis) access to your Github account, and to put those details into your travis.yml file (which will be public), you can do the following:

  • Log in to Github
  • Open Settings, then open the Applications tab
  • Add an API token
  • Encrypt your API token

Example:

travis encrypt GH_OAUTH=2345abc123abc5555abcde2345ccc384838483848abcde --add env.global



Log in to Github