From 2b06540b2b79651902922484e3c41a2bf6583711 Mon Sep 17 00:00:00 2001 From: panda <919401990@qq.com> Date: Tue, 1 Oct 2024 15:32:29 +0700 Subject: [PATCH] fix : again --- .github/workflows/release.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1a78b96..703e5f0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,14 +22,11 @@ jobs: version: latest - name: Install dependencies run: pnpm install --frozen-lockfile - - name: Setup SSH Keys and known_hosts - env: - SSH_AUTH_SOCK: /tmp/ssh_agent.sock - run: | - mkdir -p ~/.ssh - ssh-keyscan github.com >> ~/.ssh/known_hosts - ssh-agent -a $SSH_AUTH_SOCK > /dev/null - ssh-add - <<< "${{ secrets.SSH_PRIVATE_KEY }}" + - name: Install SSH Key + uses: shimataro/ssh-key-action@v2 + with: + key: ${{ secrets.SERVER_SSH_KEY }} + known_hosts: ${{ secrets.KNOWN_HOSTS }} - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}