Still trying to fix deploys

This commit is contained in:
Kim 2023-10-30 08:19:37 +01:00
parent 5027e10189
commit 3137c887b0
1 changed files with 5 additions and 5 deletions

View File

@ -38,9 +38,9 @@ jobs:
SSH_KEY: ${{ secrets.STAGING_SSH_KEY }}
SSH_HOST: ${{ secrets.STAGING_SSH_HOST }}
- run: cd ${{ gitea.workspace }}
- run: scp -o StrictHostKeyChecking=no -r ./csharp/App/Backend/bin/Release/net6.0/linux-x64/publish/ ubuntu@${{ secrets.STAGING_SSH_HOST }}:~/backend
- run: scp -o StrictHostKeyChecking=no -r ./typescript/frontend-marios2/* ubuntu@${{ secrets.STAGING_SSH_HOST }}:~/frontend/
- run: ssh -o StrictHostKeyChecking=no staging 'sudo systemctl restart backend'
- run: ssh -o StrictHostKeyChecking=no staging 'sudo cp -rf ~/frontend/build/* /var/www/html/monitor.innov.energy/html/'
- run: ssh -o StrictHostKeyChecking=no staging 'sudo npm install -g serve'
- run: scp -vo StrictHostKeyChecking=no -r ./csharp/App/Backend/bin/Release/net6.0/linux-x64/publish/ ubuntu@${{ secrets.STAGING_SSH_HOST }}:~/backend
- run: scp -vo StrictHostKeyChecking=no -r ./typescript/frontend-marios2/* ubuntu@${{ secrets.STAGING_SSH_HOST }}:~/frontend/
- run: ssh -vo StrictHostKeyChecking=no staging 'sudo systemctl restart backend'
- run: ssh -vo StrictHostKeyChecking=no staging 'sudo cp -rf ~/frontend/build/* /var/www/html/monitor.innov.energy/html/'
- run: ssh -vo StrictHostKeyChecking=no staging 'sudo npm install -g serve'
- run: echo " This job's status is ${{ job.status }}."