I created an organization and a open source project under it, and uploaded the .travis
file to do the building and deploying to github pages.
To deploy I need a github token, I found there is no "settings" page on the travis admin, so how I have to put the token in .travis
file in plain text:
How to add it securely?
Find out the official document: https://docs.travis-ci.com/user/environment-variables#defining-encrypted-variables-in-travisyml
Basically speaking, it needs these steps:
gem install travis
travis login # input github account and password
travis encrypt github_token=<token> --add env.matrix
and it auto update the .travis
file, so you only need to git push
then.
For why there is no settings
options, I guess it because the repo is under organization.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments