From 3f34eef31c76eb2a507b9dc90e7280460c617eec Mon Sep 17 00:00:00 2001 From: Didier Date: Sat, 29 Apr 2023 21:31:42 +0200 Subject: [PATCH] pls work --- .github/workflows/update-server.yml | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/.github/workflows/update-server.yml b/.github/workflows/update-server.yml index 3954789..a48dad9 100644 --- a/.github/workflows/update-server.yml +++ b/.github/workflows/update-server.yml @@ -5,15 +5,28 @@ jobs: update: runs-on: ubuntu-latest steps: - - run: apt update -y && apt install -y openssh-client - - run: mkdir ~/.ssh - - name: create ssh profile - run: echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa - - run: chmod 600 ~/.ssh/id_rsa + - name: setup ssh + run: | + mkdir -p ~/.ssh/ + echo "$SSH_KEY" > ~/.ssh/staging.key + chmod 600 ~/.ssh/staging.key + cat >>~/.ssh/config <