From a92ad630c9da33340f1ea76ef15a4d6d9c3d2e53 Mon Sep 17 00:00:00 2001 From: MythEclipse Date: Sun, 17 May 2026 21:34:08 +0700 Subject: [PATCH] fix: copy codebase to VPS using appleboy/scp-action to avoid git clone/pull auth dependency --- .github/workflows/deploy.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4c91805..5a9a0ac 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,6 +13,16 @@ jobs: - name: Checkout Repository uses: actions/checkout@v4 + - name: Copy Files to VPS + uses: appleboy/scp-action@v0.1.7 + with: + host: ${{ secrets.VPS_HOST }} + username: ${{ secrets.VPS_USERNAME }} + key: ${{ secrets.VPS_SSH_KEY }} + source: "." + target: "/opt/imphenbot" + rm: false + - name: Deploy via SSH uses: appleboy/ssh-action@v1.0.3 env: @@ -25,9 +35,6 @@ jobs: script: | cd /opt/imphenbot || exit - # Pull latest changes - git pull origin master - # Write environment variables from GitHub Secrets echo "$ENV_FILE" > .env