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 }}