- In GitHub, go to settings and Personal access tokens;
- Click
Generate a new token
and fill in the description; - As scope select repo;
- Copy the generated token.
Similar to the Travis-CI documentation
- Go to the repository in Travis-CI and go to settings;
- In the Environment Variables section give the variable a
Name
; - Paste the copied token as
Value
; - Click on
Add
; - Make sure the
Display value in build log
switch isOFF
.
Follow the method described by the Travis-CI documentation