Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Commit

Permalink
Improve and fix ssh handling
Browse files Browse the repository at this point in the history
  • Loading branch information
rettichlp committed May 22, 2023
1 parent 9ea1b85 commit 362c4fe
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/wiki_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ jobs:
setup-ssh:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Make sure the @v0.7.0 matches the current version of the action
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Setup SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -H rettichlp.de >> ~/.ssh/known_hosts
cat ~/.ssh/id_rsa
deploy:
runs-on: ubuntu-latest
needs: [ build,setup-ssh ]
Expand Down

0 comments on commit 362c4fe

Please sign in to comment.