Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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