From 63bf8035601c127181eab62082be3b0c4fcac169 Mon Sep 17 00:00:00 2001 From: Yar Bash Date: Thu, 21 Nov 2024 21:59:20 +0300 Subject: [PATCH] test-deploy 31 --- .github/workflows/test-deployment.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-deployment.yml b/.github/workflows/test-deployment.yml index 54b635d..ed5c506 100644 --- a/.github/workflows/test-deployment.yml +++ b/.github/workflows/test-deployment.yml @@ -38,7 +38,7 @@ jobs: name: production-build - name: Display artifact files run: ls -R - - name: Upload prod build to server + - name: Prepare folders on production server uses: appleboy/ssh-action@v1.2.0 with: host: ${{ vars.SERVER_NAME }} @@ -46,3 +46,12 @@ jobs: 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: + host: ${{ vars.SERVER_NAME }} + username: root + key: ${{ secrets.SERVER_SSH_KEY }} + port: 22 + source: main/* + target: /var/www/webface_test