From be5add0a29157662674bd5016f49517abf3a8b14 Mon Sep 17 00:00:00 2001 From: Yar Bash Date: Thu, 21 Nov 2024 22:49:15 +0300 Subject: [PATCH] test-deploy 41 --- .github/workflows/test-deployment.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test-deployment.yml b/.github/workflows/test-deployment.yml index 93c742b..0948715 100644 --- a/.github/workflows/test-deployment.yml +++ b/.github/workflows/test-deployment.yml @@ -39,17 +39,17 @@ jobs: - name: Prepare folders on production server uses: appleboy/ssh-action@v1.2.0 with: - host: ${{ vars.SERVER_NAME }} - username: root + host: ${{ secrets.SERVER_NAME }} + username: ${{ secrets.USERNAME }} key: ${{ secrets.SERVER_SSH_KEY }} - port: 22 + port: ${{ secrets.SERVER_SSH_PORT }} 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 + host: ${{ secrets.SERVER_NAME }} + username: ${{ secrets.USERNAME }} key: ${{ secrets.SERVER_SSH_KEY }} - port: 22 + port: ${{ secrets.SERVER_SSH_PORT }} source: webface/* target: /var/www/