Skip to content

Commit

Permalink
Test ssh key populating
Browse files Browse the repository at this point in the history
  • Loading branch information
ctmbl committed Oct 25, 2023
1 parent 7e774c9 commit 19bd0ff
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 19bd0ff

Please sign in to comment.