mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-15 08:26:04 +08:00
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'
16 lines
390 B
Bash
Executable File
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" |