Fix Workflow for the Third Time
All checks were successful
Build Hugo Site / build (push) Successful in 10s

This commit is contained in:
Benjamin Hays 2024-01-27 23:53:31 -05:00
parent aac79ddd91
commit 8ce24059b6

View File

@ -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/