You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just spent the last wee while bashing my head against this. I had done it a while ago and didn't think to write it down because it seemed obvious. When I went to do it again it wasn't so obvious.
I'm busy this afternoon but I will try to add a section to the docs going through this when I get the chance.
Copy and paste the highlighted text from PuTTY beginning with ssh-rsa into the key
Click allow write access
Click Add key
Add the private key to travis
Go back to the PuTTY Key Generator. Under the Conversions tab, click Export OpenSSH key. Click through the prompt that says you are saving without a password (Travis needs a key with no passphrase). Save that key somewhere.
Run Julia> Documenter.base64encode(readstring(“path/to/the/private/key”))
Under the Environment Variables heading, add an environment variable. The name should be DOCUMENTER_KEY and the value should be the output of the Julia command from step 9 (make sure to remove the surrounding quotes).
Check that the “Display value in build log” is switched off and then click Add.
The text was updated successfully, but these errors were encountered:
Ideally DocumenterTools.Travis.genkeys would just work on Windows, but there will always probably be setups where it does not. Having a walkthrough like this would be handy! A subpage of Hosting Documentation perhaps?
Do you think it would make sense to split it up a bit? There are things that are platform-independent (adding keys to GitHub/Travis), and might also be useful for non-Windows users.
There is also a snippet you can use as long as you have ssh-keygen available: #761 (comment) Might be good to have that as well as one of the alternatives.
The only platform dependent bit is generating the key. The bit that stumped me is needing to export the private key rather than just clicking the obvious save private key button.
I just spent the last wee while bashing my head against this. I had done it a while ago and didn't think to write it down because it seemed obvious. When I went to do it again it wasn't so obvious.
I'm busy this afternoon but I will try to add a section to the docs going through this when I get the chance.
Here are the steps I took:
Generate a key
Add the public key to Github
Add deploy key
documenter
Add the private key to travis
Conversions
tab, clickExport OpenSSH key
. Click through the prompt that says you are saving without a password (Travis needs a key with no passphrase). Save that key somewhere.Julia> Documenter.base64encode(readstring(“path/to/the/private/key”))
Environment Variables
heading, add an environment variable. The name should beDOCUMENTER_KEY
and the value should be the output of the Julia command from step 9 (make sure to remove the surrounding quotes).The text was updated successfully, but these errors were encountered: