fix: ci
Some checks failed
CI / CI (push) Failing after 33s

This commit is contained in:
洛天依 2025-01-22 00:15:35 +00:00
parent bfa17cd892
commit 07a6e6ae97
Signed by: luo
SSH Key Fingerprint: SHA256:V1KdsvGUpiKVfrJo1oHrAPnc/Z6k/6xgaZN7iTbYBl4

View File

@ -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' }}/