This commit is contained in:
parent
381011dbe6
commit
7b80b395f2
@ -24,6 +24,15 @@ jobs:
|
|||||||
- name: Build Site
|
- name: Build Site
|
||||||
run: hugo --minify
|
run: hugo --minify
|
||||||
|
|
||||||
|
- name: Test SSH Connection
|
||||||
|
run: |
|
||||||
|
mkdir -p ~/.ssh
|
||||||
|
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
|
||||||
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
|
# Add verbose output and show the SSH version
|
||||||
|
ssh -V
|
||||||
|
ssh -vvv -o StrictHostKeyChecking=no john@192.168.1.177 'echo "Connection successful"'
|
||||||
|
|
||||||
- name: Deploy to Server
|
- name: Deploy to Server
|
||||||
uses: appleboy/scp-action@v0.1.7
|
uses: appleboy/scp-action@v0.1.7
|
||||||
with:
|
with:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user