diff --git a/.gitea/workflows/prod-deploy.yaml b/.gitea/workflows/prod-deploy.yaml index 694e77ba1..d77817d50 100644 --- a/.gitea/workflows/prod-deploy.yaml +++ b/.gitea/workflows/prod-deploy.yaml @@ -25,9 +25,10 @@ jobs: host: 194.182.190.208 username: ubuntu key: ${{ secrets.PRODUCTION_SSH_KEY }} - source: "${{ gitea.workspace }}/csharp/App/Backend/bin/Release/net6.0/linux-x64/publish/*" + source: "${{ gitea.workspace }}/csharp/App/Backend/bin/Release/net6.0/linux-x64/publish/" target: "~/backend" overwrite: true + strip_components: 1 - name: Copy Frontend uses: appleboy/scp-action@v0.1.4 @@ -35,9 +36,10 @@ jobs: host: 194.182.190.208 username: ubuntu key: ${{ secrets.PRODUCTION_SSH_KEY }} - source: "${{ gitea.workspace }}/typescript/frontend-marios2/*" + source: "${{ gitea.workspace }}/typescript/frontend-marios2/" target: "~/frontend" overwrite: true + strip_components: 1 - name: restart services uses: appleboy/ssh-action@v0.1.4 diff --git a/.gitea/workflows/stage-deploy.yaml b/.gitea/workflows/stage-deploy.yaml index 34659d164..81a9c8c21 100644 --- a/.gitea/workflows/stage-deploy.yaml +++ b/.gitea/workflows/stage-deploy.yaml @@ -25,9 +25,10 @@ jobs: 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: "~/backend" - overwrite: true + source: "${{ gitea.workspace }}/csharp/App/Backend/bin/Release/net6.0/linux-x64/publish/" + target: "~/backend/" + overwrite: true + strip_components: 1 - name: Copy Frontend uses: appleboy/scp-action@v0.1.4 @@ -35,9 +36,10 @@ jobs: host: 91.92.154.141 username: ubuntu key: ${{ secrets.STAGING_SSH_KEY }} - source: "${{ gitea.workspace }}/typescript/frontend-marios2/*" - target: "~/frontend" + source: "${{ gitea.workspace }}/typescript/frontend-marios2/" + target: "~/frontend/" overwrite: true + strip_components: 1 - name: restart services uses: appleboy/ssh-action@v0.1.4