Trying single ssh command script non-sudo

This commit is contained in:
Kim 2023-11-06 15:25:04 +01:00
parent 6458757222
commit f985105751
1 changed files with 4 additions and 4 deletions

View File

@ -45,10 +45,10 @@ jobs:
host: 91.92.154.141
username: ubuntu
key: ${{ secrets.STAGING_SSH_KEY }}
script: |
sudo systemctl restart backend
sudo cp -rf ~/frontend/build/*
sudo npm install -g serve/var/www/html/monitor.innov.energy/html/
script: systemctl restart backend
# sudo cp -rf ~/frontend/build/*
# sudo npm install -g serve/var/www/html/monitor.innov.energy/html/
- run: echo " This job's status is ${{ job.status }}."