Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,18 @@ jobs:
key: ${{ secrets.EC2_KEY }}
script: |
echo "🔄 Deploying clientside to EC2..."
cd /home/onehash/frappe-bench/apps/clientside

echo "⬇️ Pulling latest code from v-15 branch..."
git checkout v-15
git pull upstream v-15
sudo -u onehash bash -c '
cd /home/onehash/frappe-bench/apps/clientside

echo "⚙️ Building clientside app..."
bench build --app clientside
echo "⬇️ Pulling latest code from v-15 branch..."
git checkout v-15
git pull upstream v-15

echo "⚙️ Building clientside app..."
bench build --app clientside
'
echo "🚀 Restarting supervisor services..."
echo ${{secrets.EC2_PW}} | sudo -S supervisorctl restart all
sudo supervisorctl restart all