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 <