From 822e4ba671125fe94776f2b1ac1101fcd3688937 Mon Sep 17 00:00:00 2001 From: Yar Bash Date: Thu, 21 Nov 2024 22:39:14 +0300 Subject: [PATCH] test-deploy 39 --- .github/workflows/test-deployment.yml | 4 +--- scripts/copy2site.sh | 2 +- vite.config.ts | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test-deployment.yml b/.github/workflows/test-deployment.yml index 65d4077..93c742b 100644 --- a/.github/workflows/test-deployment.yml +++ b/.github/workflows/test-deployment.yml @@ -36,8 +36,6 @@ jobs: uses: actions/download-artifact@v4 with: name: production-build - - name: Display artifact files - run: ls webface_test - name: Prepare folders on production server uses: appleboy/ssh-action@v1.2.0 with: @@ -53,5 +51,5 @@ jobs: username: root key: ${{ secrets.SERVER_SSH_KEY }} port: 22 - source: webface_test/* + source: webface/* target: /var/www/ diff --git a/scripts/copy2site.sh b/scripts/copy2site.sh index 0328004..5eb6506 100755 --- a/scripts/copy2site.sh +++ b/scripts/copy2site.sh @@ -1,3 +1,3 @@ #!/bin/sh -rm -r /var/www/webface_test +rm -r /var/www/webface diff --git a/vite.config.ts b/vite.config.ts index 9f19296..c06fb19 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -69,7 +69,7 @@ export default defineConfig((args) => { root: "./src/sites/main", publicDir: "./public", build: { - outDir: '../../../dist/webface_test', + outDir: '../../../dist/webface', emptyOutDir: true, }, plugins: [preact(), svgr(svgrOpts)],