From 07a6e6ae9785713ec70661d9832b1447698602f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E5=A4=A9=E4=BE=9D?= Date: Wed, 22 Jan 2025 00:15:35 +0000 Subject: [PATCH] fix: ci --- .github/workflows/ci.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d683cd9..987d9b6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,8 +8,9 @@ jobs: env: GIT_SERVER: devops.lty.name DEPLOY_USER: static-deploy - DEPLOY_SERVER: copy.lty.name + DEPLOY_SERVER: lty.name DEPLOY_SERVER_KEY: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBKn1tARbrf+klrF31iN1Q0otmL1AvDDI87kC7HLo5ix + DEPLOY_SOURCE: dist DEPLOY_TARGET: homepage steps: - name: build @@ -26,5 +27,5 @@ jobs: apt update && apt install -y rsync mkdir -p ~/.ssh && touch ~/.ssh/id_ed25519 && chmod 600 ~/.ssh/id_ed25519 echo ${{ secrets.DEPLOY_SSH_KEY }} | base64 -d > ~/.ssh/id_ed25519 - echo ${{ secrets.DEPLOY_SERVER }} ${{ env.DEPLOY_SERVER_KEY }} > ~/.ssh/known_hosts - rsync -avz --delete ./dist/ ${{ env.DEPLOY_USER }}@${{ env.DEPLOY_SERVER }}:~/web/${{ env.DEPLOY_TARGET }}/ + echo ${{ env.DEPLOY_SERVER }} ${{ env.DEPLOY_SERVER_KEY }} > ~/.ssh/known_hosts + rsync -avz --delete ./${{ env.DEPLOY_SOURCE || 'none' }}/ ${{ env.DEPLOY_USER }}@${{ env.DEPLOY_SERVER }}:web/${{ env.DEPLOY_TARGET || 'none' }}/