Fix Workflow for the Third Time
All checks were successful
Build Hugo Site / build (push) Successful in 10s
All checks were successful
Build Hugo Site / build (push) Successful in 10s
This commit is contained in:
parent
aac79ddd91
commit
8ce24059b6
@ -23,10 +23,13 @@ jobs:
|
||||
run: |
|
||||
hugo \
|
||||
--minify
|
||||
- name: Deploy to Server
|
||||
- name: Add SSH Key
|
||||
env:
|
||||
SSH_KEY: ${{ secrets.SSH_KEY }}
|
||||
run: |
|
||||
echo "$SSH_KEY" > /root/.ssh/id_rsa
|
||||
chmod 600 /root/.ssh/id_rsa
|
||||
mkdir -p ~/.ssh/
|
||||
echo "$SSH_KEY" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
- name: Deploy to Server
|
||||
run: |
|
||||
scp -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -r public/* bhays@10.0.1.15:/var/www/html/
|
Loading…
Reference in New Issue
Block a user