Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Andcool-Systems authored Jul 27, 2024
1 parent 0d5e586 commit 579d376
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ jobs:
SSHPASS: ${{ secrets.ROOT_SSH_PASSWORD }}
run: |
sudo apt-get install -y sshpass
sshpass -e scp -o StrictHostKeyChecking=no -r ./* root@194.169.160.97:/home/ppl_site
sshpass -e scp -o StrictHostKeyChecking=no -r ./* root@${{ secrets.SERVER_IP }}:/home/ppl_site
- name: Execute remote commands
env:
SSHPASS: ${{ secrets.ROOT_SSH_PASSWORD }}
run: |
sshpass -e ssh -o StrictHostKeyChecking=no root@194.169.160.97 << 'EOF'
sshpass -e ssh -o StrictHostKeyChecking=no root@${{ secrets.SERVER_IP }} << 'EOF'
cd /home/ppl_site
npm run build
systemctl restart ppl_site
Expand Down

0 comments on commit 579d376

Please sign in to comment.