Skip to content

Instantly share code, notes, and snippets.

@vidavidorra
Last active February 22, 2016 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vidavidorra/7ed6166a46c537d3cbd2 to your computer and use it in GitHub Desktop.
Save vidavidorra/7ed6166a46c537d3cbd2 to your computer and use it in GitHub Desktop.
Example of Travis-CI to publish to GitHub

Travis-CI publish to GitHub

Generating a personal access token for GitHub

  1. In GitHub, go to settings and Personal access tokens;
  2. Click Generate a new token and fill in the description;
  3. As scope select repo;
  4. Copy the generated token.

Adding the secure variable to Travis-CI

Method 1: Using the Repository Settings

Similar to the Travis-CI documentation

  1. Go to the repository in Travis-CI and go to settings;
  2. In the Environment Variables section give the variable a Name;
  3. Paste the copied token as Value;
  4. Click on Add;
  5. Make sure the Display value in build log switch is OFF.

Method 2: Using the Encrypted Variables

Follow the method described by the Travis-CI documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment