From 03fbbed39cbaaed1250cae8d855b3d60a1b25fc5 Mon Sep 17 00:00:00 2001 From: austnv Date: Sun, 21 Jun 2026 17:17:21 +0300 Subject: [PATCH] change ssh key managment system --- .gitea/workflows/deploy.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index dfbe19f..e053d3f 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -23,12 +23,10 @@ jobs: - name: Build project run: npm run build - - name: Setup SSH key - run: | - mkdir -p ~/.ssh - echo "${{ secrets.DEPLOY_SSH_KEY }}" > ~/.ssh/id_ed25519 - chmod 600 ~/.ssh/id_ed25519 - ssh-keyscan -H ${{ secrets.DEPLOY_HOST }} >> ~/.ssh/known_hosts + - name: Install SSH key + uses: webfactory/ssh-agent@v0.9.0 + with: + ssh-private-key: ${{ secrets.DEPLOY_SSH_KEY }} - name: Debug SSH key run: |