This commit is contained in:
Kim 2023-10-23 17:12:47 +02:00
parent ae8245c457
commit ad99d58655
1 changed files with 5 additions and 5 deletions

View File

@ -38,10 +38,10 @@ 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: | - run: |
cd ${{ gitea.workspace }} cd ${{ gitea.workspace }} &&
scp -r ./csharp/App/Backend/bin/Release/net6.0/linux-x64/publish/ staging:~/backend scp -r ./csharp/App/Backend/bin/Release/net6.0/linux-x64/publish/ staging:~/backend &&
scp -r ./typescript/frontend-marios2/* staging:~/frontend/ scp -r ./typescript/frontend-marios2/* staging:~/frontend/ &&
ssh staging 'sudo systemctl restart backend' ssh staging 'sudo systemctl restart backend' &&
ssh staging 'sudo cp -rf ~/frontend/build/* /var/www/html/monitor.innov.energy/html/' ssh staging 'sudo cp -rf ~/frontend/build/* /var/www/html/monitor.innov.energy/html/' &&
ssh staging 'sudo npm install -g serve' ssh staging 'sudo npm install -g serve'
- run: echo " This job's status is ${{ job.status }}." - run: echo " This job's status is ${{ job.status }}."