gh-pages
gh-pages copied to clipboard
SSH vs HTTPS
I was having an issue on a couple of repos in which we have set up to deploy using gh-pages from Travis. This was setup using Githubs deploys keys and Travis's encrypted file support, similar to this setup.
However it seems gh-pages clones using the https
urls, so the remote will then be set to https
and not shh
, which is what is required to pick up the added ssh key on Travis. This would cause the push
task to fail.
This can be overcome by specifying --repo [email protected]:{FOO}/{BAR}.git
... but would you be open to adding an ssh
option to take care of this?
An option to prefer ssh could make sense. As long as the URL transform isn't too fragile.
This would be a really useful addition
@tschaub Whatever happened to this idea?
How can I make gh-pages use the pipeline ssh key instead of git config to verify the user? Is it in how the url should be formatted? How is the format for Bitbucket? Or is it absolutely not possible with this project?