diff --git a/.github/workflows/test-deployment.yml b/.github/workflows/test-deployment.yml index fd5fc9d..d1ac450 100644 --- a/.github/workflows/test-deployment.yml +++ b/.github/workflows/test-deployment.yml @@ -40,12 +40,6 @@ jobs: run: ls main - name: Prepare folders on production server uses: appleboy/ssh-action@v1.2.0 - with: - host: ${{ vars.SERVER_NAME }} - username: root - key: ${{ secrets.SERVER_SSH_KEY }} - port: 22 - script_path: ./scripts/copy2site.sh - name: Copy build to production server uses: appleboy/scp-action@v0.1.7 with: @@ -53,5 +47,6 @@ jobs: username: root key: ${{ secrets.SERVER_SSH_KEY }} port: 22 + rm: true source: main/* - target: /var/www/webface_test + target: /var/www/webface_test/ diff --git a/scripts/copy2site.sh b/scripts/copy2site.sh index 4f6e9e7..0328004 100755 --- a/scripts/copy2site.sh +++ b/scripts/copy2site.sh @@ -1,4 +1,3 @@ #!/bin/sh rm -r /var/www/webface_test -mkdir -p /var/www/webface_test