From b8ab12d31bb395b017fffe0bb93f031be43214df Mon Sep 17 00:00:00 2001 From: BreizhHardware Date: Mon, 14 Oct 2024 19:07:30 +0200 Subject: [PATCH] Fix deploy --- .github/workflows/deploy.yml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1158ef5..9bb64d8 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -47,19 +47,13 @@ jobs: name: cypress-screenshots path: cypress/screenshots - - name: Get changed files - uses: tj-actions/changed-files@v41 + - name: Copy build directory to server + uses: Dylan700/sftp-upload-action@v1.2.3 with: - since_last_remote_commit: true - separator: "," - files: "./dist/***" - - - name: copy file to server - uses: appleboy/scp-action@v0.1.7 - with: - host: ${{ secrets.SERVER_HOST }} + server: ${{ secrets.SERVER_HOST }} username: ${{ secrets.SERVER_USERNAME }} password: ${{ secrets.SERVER_PASSWORD }} port: ${{ secrets.SERVER_PORT }} - source: "./dist/*" - target: /webroot/ + uploads: | + ./dist => /webroot/ + delete: true \ No newline at end of file