From 56d2e9712acddf9ef4bf8ad3132d617fe31763cd Mon Sep 17 00:00:00 2001 From: Kim Date: Mon, 6 Nov 2023 13:11:04 +0100 Subject: [PATCH] appleboy pls help --- .gitea/workflows/stage-deploy.yaml | 79 +++++++++++++++++++++--------- 1 file changed, 55 insertions(+), 24 deletions(-) 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 <