Files
biopython/.github/ssh_via_deploy_key.sh
peterjc 0bc732cce4 Proof of principle deployment to biopython/docs
Created a pass-phrase less SSH key, uploaded the public key to
biopython/docs settings as a deployment key (write permissions).

For TravisCI must escape the spaces and newlines as '\ ' and '\\n'
respectively when setting DOC_KEY as a secure environment variable.

Can test this locally by setting the DOC_KEY environment variable.

Idea here is to call this from TravisCI/Tox after running Sphinx
to build our API documentation.
2019-07-16 08:05:20 +01:00

5 lines
189 B
Bash
Executable File

#!/bin/bash
# Call ssh using our GitHub repository deploy key (set via -i)
# using -F to make sure this ignores ~/.ssh/config
ssh -i "$HOME/.biopython_doc_deploy.key" -F /dev/null -p 22 $*