diff --git a/.gitea/workflows/stage-deploy.yaml b/.gitea/workflows/stage-deploy.yaml index 027d874e1..957d53011 100644 --- a/.gitea/workflows/stage-deploy.yaml +++ b/.gitea/workflows/stage-deploy.yaml @@ -25,7 +25,6 @@ jobs: run: | mkdir -p /root/.ssh/ touch /root/.ssh/config - echo '$SSH_KEY' echo '$SSH_KEY' > /root/.ssh/id_rsa chmod 700 /root/.ssh/id_rsa @@ -40,6 +39,7 @@ jobs: SSH_USER: ubuntu SSH_HOST: 91.92.154.141 SSS_KEY: ${{ secrets.STAGING_SSH_KEY }} + - run: sudo su - run: scp -vo StrictHostKeyChecking=no -r ${{ gitea.workspace }}/csharp/App/Backend/bin/Release/net6.0/linux-x64/publish/ staging:~/backend - run: scp -vo StrictHostKeyChecking=no -r ${{ gitea.workspace }}/typescript/frontend-marios2/* staging:~/frontend/ - run: ssh -vo StrictHostKeyChecking=no staging 'sudo systemctl restart backend'