change ssh key managment system

This commit is contained in:
austnv
2026-06-21 17:17:21 +03:00
parent 0c825abad2
commit 03fbbed39c
+4 -6
View File
@@ -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: |