Skip to content

Commit

Permalink
add ssh key without passphrase
Browse files Browse the repository at this point in the history
  • Loading branch information
ImGabreuw committed Dec 30, 2023
1 parent 54300ce commit 4f76723
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,17 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- shell: bash
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
MY_ZETTELKASTEN_URL: ${{ secrets.MY_ZETTELKASTEN_URL }}
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan github.com >> ~/.ssh/known_hosts
git clone "$MY_ZETTELKASTEN_URL" content
git clone "$MY_ZETTELKASTEN_URL"
mkdir -p content
mv my-zettelkasten/assets content/assets
mv my-zettelkasten/wiki/* content
- uses: actions/setup-node@v3
with:
node-version: 18.14
Expand Down

0 comments on commit 4f76723

Please sign in to comment.