change action

This commit is contained in:
Oleg Oleg 2025-12-25 01:20:26 +04:00
parent 56da4712aa
commit 7bd6a152de

View File

@ -19,5 +19,7 @@ jobs:
install -m 700 -d ~/.ssh install -m 700 -d ~/.ssh
echo "${DEPLOY_SSH_KEY}" > ~/.ssh/id_ed25519 echo "${DEPLOY_SSH_KEY}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519 chmod 600 ~/.ssh/id_ed25519
echo "Connecting to ${DEPLOY_USER}@${DEPLOY_HOST}"
echo "Navigating to ${DEPLOY_PATH} and pulling latest changes"
ssh -o StrictHostKeyChecking=no "${DEPLOY_USER}@${DEPLOY_HOST}" \ ssh -o StrictHostKeyChecking=no "${DEPLOY_USER}@${DEPLOY_HOST}" \
"cd '${DEPLOY_PATH}' && git pull && ./new_version.sh" "cd '${DEPLOY_PATH}' && git pull && ./new_version.sh"