Enhance SSH setup in deployment workflow to include error handling for empty SSH key
Some checks failed
Deploy Development / deploy (push) Failing after 28s

This commit is contained in:
Frank John Begornia
2025-12-16 14:04:01 +08:00
parent 74860f8a0d
commit aaa043f06e

View File

@@ -31,6 +31,13 @@ jobs:
- name: Setup SSH
shell: sh
run: |
set -e
if [ -z "${DEPLOY_SSH_KEY}" ]; then
echo "❌ DEPLOY_SSH_KEY is EMPTY"
exit 1
fi
mkdir -p ~/.ssh
chmod 700 ~/.ssh