From 302140c36489bd471d38778ef881005b7f4ce523 Mon Sep 17 00:00:00 2001 From: rishabh Date: Mon, 14 Jul 2025 14:11:14 +0530 Subject: [PATCH] updated main.yml --- .github/workflows/main.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 06f65f9..371a7b6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,6 +23,7 @@ jobs: key: ${{ secrets.EC2_KEY }} script: | echo "🔄 Deploying clientside to EC2..." + cd /home/onehash sudo -u onehash bash -c ' export NVM_DIR="/home/onehash/.nvm" @@ -39,8 +40,11 @@ jobs: echo "⚙️ Building clientside app..." bench build --app clientside + + echo "🚀 Restarting supervisor services..." + echo "${{secrets.EC2_PW}}" | sudo -S supervisorctl restart all ' - echo "🚀 Restarting supervisor services..." - sudo supervisorctl restart all + +