#! /bin/bash set -e # This whole script is being run inside of poetry, so no need to wrap move of # it in poetry calls. python -m pip install docutils sphinx cp local_settings_example.py doc cd doc cat > doc_upload_ssh_config < doc_upload_key chmod 0600 doc_upload_key RSYNC_RSH="ssh -F doc_upload_ssh_config" ./upload-docs.sh || { rm doc_upload_key; exit 1; } rm doc_upload_key else echo "Skipping upload. DOC_UPLOAD_KEY was not provided." fi