1
0
Fork 0

setup ssh
Some checks failed
Hugo / build (push) Failing after -23s

This commit is contained in:
brooke 2024-09-12 14:02:10 -04:00
parent cbd59eed3e
commit 6b371a61fd

View file

@ -16,6 +16,10 @@ jobs:
run: hugo --minify
- name: pre-compress
run: find ./public/* -type f \( -name '*.html' -o -name '*.js' -o -name '*.css' \) -exec gzip -v -k -f --best {} \;
- name: Set up SSH
uses: webfactory/ssh-agent@v0.5.3
with:
ssh-private-key: ${{ secrets.RUNNER_SSH_PRIVATE_KEY }}
- name: Rsync to first remote server
run: |
rsync -rlgoDzvc -i --delete public/ "${{ secrets.REMOTE_USER }}@${{ secrets.REMOTE_HOST }}:${{ secrets.REMOTE_TARGET }}"