diff --git a/.gitea/workflows/prod-deploy.yaml b/.gitea/workflows/prod-deploy.yaml index b0ed6a343..bd450c811 100644 --- a/.gitea/workflows/prod-deploy.yaml +++ b/.gitea/workflows/prod-deploy.yaml @@ -25,8 +25,9 @@ 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 - name: Copy Frontend uses: appleboy/scp-action@v0.1.4 @@ -34,8 +35,9 @@ 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 - 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 dd6e38cec..b9dbde2a5 100644 --- a/.gitea/workflows/stage-deploy.yaml +++ b/.gitea/workflows/stage-deploy.yaml @@ -25,17 +25,19 @@ 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/" + source: "${{ gitea.workspace }}/csharp/App/Backend/bin/Release/net6.0/linux-x64/publish/*" target: "~/backend" - + overwrite: true + - name: Copy Frontend uses: appleboy/scp-action@v0.1.4 with: host: 91.92.154.141 username: ubuntu key: ${{ secrets.STAGING_SSH_KEY }} - source: "${{ gitea.workspace }}/typescript/frontend-marios2/" + source: "${{ gitea.workspace }}/typescript/frontend-marios2/*" target: "~/frontend" + overwrite: true - name: restart services uses: appleboy/ssh-action@v0.1.4