From 171e409393818580138b3936f4ebc405b2f86a97 Mon Sep 17 00:00:00 2001 From: Knowledge Base Agent Date: Sat, 28 Feb 2026 18:38:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E7=8E=AF=E5=A2=83=E5=8F=98?= =?UTF-8?q?=E9=87=8F=E4=BC=A0=E9=80=92DEPLOY=5FKEY?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index fc36b9f..4e96890 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -8,13 +8,15 @@ on: jobs: deploy: runs-on: [linux, amd64] + env: + DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }} steps: - name: Setup SSH key for git run: | mkdir -p ~/.ssh - echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_rsa + echo "$DEPLOY_KEY" > ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa - ssh-keyscan -H 192.168.1.22 >> ~/.ssh/known_hosts + ssh-keyscan -H 192.168.1.22 >> ~/.ssh/known_hosts 2>/dev/null - name: Checkout code run: | @@ -24,7 +26,7 @@ jobs: - name: Setup SSH key for deploy run: | - ssh-keyscan -H micecola.top >> ~/.ssh/known_hosts + ssh-keyscan -H micecola.top >> ~/.ssh/known_hosts 2>/dev/null - name: Deploy to server run: |