diff --git a/.github/scripts/deploy.sh b/.github/scripts/deploy.sh index e165cb0..2a53229 100644 --- a/.github/scripts/deploy.sh +++ b/.github/scripts/deploy.sh @@ -1,6 +1,17 @@ +BRANCH_NAME=$1 + +if [ "$BRANCH_NAME" == "main" ]; then + PWD_PATH="/home/azureuser/learning-github-actions" +if [ "$BRANCH_NAME" == "certi" ]; then + PWD_PATH="/home/azureuser/certi" +else + PWD_PATH="/home/azureuser/develop" +fi + + ssh -o StrictHostKeyChecking=no azureuser@40.82.162.21 <