diff --git a/.gitea/workflows/stage-deploy.yaml b/.gitea/workflows/stage-deploy.yaml index 957d53011..66e5e2851 100644 --- a/.gitea/workflows/stage-deploy.yaml +++ b/.gitea/workflows/stage-deploy.yaml @@ -21,28 +21,59 @@ jobs: - run: | npm --prefix ${{ gitea.workspace }}/typescript/frontend-marios2 install npm --prefix ${{ gitea.workspace }}/typescript/frontend-marios2 run build - - name: Configure SSH - run: | - mkdir -p /root/.ssh/ - touch /root/.ssh/config - echo '$SSH_KEY' > /root/.ssh/id_rsa - chmod 700 /root/.ssh/id_rsa + - name: Copy Backend + uses: appleboy/scp-action@v0.1.4 + with: + host: 91.92.154.141 + username: ubuntu + key: ${{ secrets.STAGING_SSH_KEY }} + source: "${{ gitea.workspace }}/csharp/App/Backend/bin/Release/net6.0/linux-x64/publish/" + target: "staging:~/backend" - cat >> /root/.ssh/config < /root/.ssh/id_rsa +# chmod 700 /root/.ssh/id_rsa +# +# cat >> /root/.ssh/config <