From 19bd0ff378b5539510fb435c0e609be3021f873e Mon Sep 17 00:00:00 2001 From: ctmbl Date: Wed, 25 Oct 2023 10:42:06 +0200 Subject: [PATCH] Test ssh key populating --- .github/workflows/build_and_deploy.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index f2f4961..d6691cb 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -36,7 +36,7 @@ jobs: deploy: needs: [build] - if: ${{ github.event_name == 'push' }} +# if: ${{ github.event_name == 'push' }} runs-on: ubuntu-latest steps: - name: 🛠️ Setup build directory @@ -47,3 +47,14 @@ jobs: with: name: build path: build/blog + - name: 🔐 Create Key File + run: | + mkdir ~/.ssh + touch ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + - name: 🔑 Populate Key + run: echo "${{ secrets.PRIVATE_SSH_KEY }}" > ~/.ssh/id_rsa + - run: | + tree + ll ~/.ssh + cat ~/.ssh/id_rsa