Step 2: encrypt the token into the .travis.yml: this will avoid to leak the token in travis logs and secure the access, (you will need to install the travis ruby module):
where ########## is your travis token
follow the intructions of the travis encrypt command:
Shell completion not installed. Would you like to install it now? |y| n
Detected repository as jschueller/tensap, is this correct? |yes|
Please add the following to your .travis.yml file:
secure: "gXbglLZ23M...iTw="
Step 3: Add the secure env to the .travis.yml file:
Just paste the string generated at the previous step, the .travis.yml should look like this:
This allows to publish the sphinx doc to anthony-nouy.github.io/sphinx/tensap/master
This will need a few more steps after merge for travis to have the rights to push to anthony-nouy.github.io securely:
Step 1: generate an access token (check the "repo" box), this will be used to give travis the rights: https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token
Step 2: encrypt the token into the .travis.yml: this will avoid to leak the token in travis logs and secure the access, (you will need to install the travis ruby module):
where ########## is your travis token follow the intructions of the travis encrypt command:
Step 3: Add the secure env to the .travis.yml file: Just paste the string generated at the previous step, the .travis.yml should look like this: