etl/scripts/deploy_documentation.sh
John Wellbelove d5f4ac5177 Updated callout on bresenham_line.md
Added support for showing the ETL version on the documentation first page, by copying the version.txt file as a hugo asset.
Updated the Python 'update_release.py' to copy 'version.txt'
2026-06-01 18:35:25 +01:00

16 lines
390 B
Bash
Executable File

#!/bin/bash
set -e
# Set up SSH
mkdir -p ~/.ssh
echo "$ACTIONS_DEPLOY_KEY" > ~/.ssh/deploy_key
chmod 600 ~/.ssh/deploy_key
# Add server to known hosts
ssh-keyscan -p "$SSH_PORT" "$SERVER_ADDRESS" >> ~/.ssh/known_hosts
# Deploy using rsync over SSH
rsync -avz --delete \
-e "ssh -i ~/.ssh/deploy_key -p $SSH_PORT" \
hugo/public/ \
"$SSH_USERNAME@$SERVER_ADDRESS:$SERVER_DESTINATION"