From 1af468c2fff8efc80e58a45dfd705a730dfa6e1f Mon Sep 17 00:00:00 2001 From: dafe Date: Mon, 9 Nov 2026 15:49:18 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E4=BA=91=E7=AB=AF=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E8=BF=81=E7=A7=BB=E8=87=B3=20ubuntu2=EF=BC=88=E9=98=BF?= =?UTF-8?q?=E9=87=8C=E4=BA=91=E6=AD=A3=E5=BC=8F=E6=9C=BA=20101.133.145.181?= =?UTF-8?q?=EF=BC=8Croot=20=E9=83=A8=E7=BD=B2=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy-cloud.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/deploy-cloud.yml b/.gitea/workflows/deploy-cloud.yml index 4a8e562..7623b4b 100644 --- a/.gitea/workflows/deploy-cloud.yml +++ b/.gitea/workflows/deploy-cloud.yml @@ -18,19 +18,19 @@ jobs: cd site sed -i "s/?v=[0-9]*/?v=${GITHUB_REF_NAME}/g" index.html - - name: 发布到 ubuntu3(公网 www.shashann.com) + - name: 发布到 ubuntu2(阿里云正式机,公网 www.shashann.com) env: DEPLOY_KEY: ${{ secrets.DEPLOY_SSH_KEY }} run: | mkdir -p ~/.ssh && chmod 700 ~/.ssh printf '%s\n' "$DEPLOY_KEY" > ~/.ssh/id_ed25519 chmod 600 ~/.ssh/id_ed25519 - ssh-keyscan -H 124.222.157.76 >> ~/.ssh/known_hosts 2>/dev/null + ssh-keyscan -H 101.133.145.181 >> ~/.ssh/known_hosts 2>/dev/null cd site - ssh ubuntu@124.222.157.76 'mkdir -p /var/www/shashann-homepage && find /var/www/shashann-homepage -mindepth 1 -maxdepth 1 -exec rm -rf {} +' - tar czf - index.html assets robots.txt sitemap.xml llms.txt | ssh ubuntu@124.222.157.76 'tar xzf - -C /var/www/shashann-homepage' + ssh root@101.133.145.181 'mkdir -p /var/www/shashann-homepage && find /var/www/shashann-homepage -mindepth 1 -maxdepth 1 -exec rm -rf {} +' + tar czf - index.html assets robots.txt sitemap.xml llms.txt | ssh root@101.133.145.181 'tar xzf - -C /var/www/shashann-homepage' - name: 上线验证 run: | - curl -s -f -o /dev/null --resolve www.shashann.com:443:124.222.157.76 https://www.shashann.com/ || { echo "❌ 公网验证失败"; exit 1; } + curl -s -f -o /dev/null --resolve www.shashann.com:443:101.133.145.181 https://www.shashann.com/ || { echo "❌ 公网验证失败"; exit 1; } echo "✅ 云端已发布 ${GITHUB_REF_NAME} $(date '+%H:%M:%S')"