scp rewrite
This commit is contained in:
parent
1573ae8090
commit
bb5f344c1e
|
@ -38,8 +38,8 @@ jobs:
|
||||||
SSH_KEY: ${{ secrets.STAGING_SSH_KEY }}
|
SSH_KEY: ${{ secrets.STAGING_SSH_KEY }}
|
||||||
SSH_HOST: ${{ secrets.STAGING_SSH_HOST }}
|
SSH_HOST: ${{ secrets.STAGING_SSH_HOST }}
|
||||||
- run: cd ${{ gitea.workspace }}
|
- run: cd ${{ gitea.workspace }}
|
||||||
- run: scp -r ./csharp/App/Backend/bin/Release/net6.0/linux-x64/publish/ staging:~/backend
|
- run: scp -r ./csharp/App/Backend/bin/Release/net6.0/linux-x64/publish/ ubuntu@${{ secrets.STAGING_SSH_HOST }}:~/backend
|
||||||
- run: scp -r ./typescript/frontend-marios2/* staging:~/frontend/
|
- run: scp -r ./typescript/frontend-marios2/* ubuntu@${{ secrets.STAGING_SSH_HOST }}:~/frontend/
|
||||||
- run: ssh staging 'sudo systemctl restart backend'
|
- run: ssh staging 'sudo systemctl restart backend'
|
||||||
- run: ssh staging 'sudo cp -rf ~/frontend/build/* /var/www/html/monitor.innov.energy/html/'
|
- run: ssh staging 'sudo cp -rf ~/frontend/build/* /var/www/html/monitor.innov.energy/html/'
|
||||||
- run: ssh staging 'sudo npm install -g serve'
|
- run: ssh staging 'sudo npm install -g serve'
|
||||||
|
|
Loading…
Reference in New Issue