1
0
Fork 0

update
All checks were successful
Hugo / build (push) Successful in -11s

This commit is contained in:
brooke 2024-09-12 14:07:23 -04:00
parent 914ab05a26
commit b32a0e3d32

View file

@ -16,13 +16,21 @@ jobs:
run: hugo --minify run: hugo --minify
- name: pre-compress - name: pre-compress
run: find ./public/* -type f \( -name '*.html' -o -name '*.js' -o -name '*.css' \) -exec gzip -v -k -f --best {} \; run: find ./public/* -type f \( -name '*.html' -o -name '*.js' -o -name '*.css' \) -exec gzip -v -k -f --best {} \;
- name: Set up SSH - name: Deploy to Server
uses: https://github.com/webfactory/ssh-agent@v0.5.3 uses: https://git.myco.systems/mirrors/ssh-deploy@main
with: env:
ssh-private-key: ${{ secrets.RUNNER_SSH_PRIVATE_KEY }} SSH_PRIVATE_KEY: ${{ secrets.RUNNER_SSH_PRIVATE_KEY }}
- name: Rsync to first remote server ARGS: "-rlgoDzvc -i --delete"
run: | SOURCE: "public/"
rsync -rlgoDzvc -i --delete public/ "${{ secrets.REMOTE_USER }}@${{ secrets.REMOTE_HOST }}:${{ secrets.REMOTE_TARGET }}" REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
- name: Rsync to second remote server REMOTE_USER: ${{ secrets.REMOTE_USER }}
run: | TARGET: ${{ secrets.REMOTE_TARGET }}
rsync -rlgoDzvc -i --delete public/ "${{ secrets.REMOTE_USER1 }}@${{ secrets.REMOTE_HOST1 }}:${{ secrets.REMOTE_TARGET }}" - name: Deploy to Server
uses: https://git.myco.systems/mirrors/ssh-deploy@main
env:
SSH_PRIVATE_KEY: ${{ secrets.RUNNER_SSH_PRIVATE_KEY }}
ARGS: "-rlgoDzvc -i --delete"
SOURCE: "public/"
REMOTE_HOST: ${{ secrets.REMOTE_HOST1 }}
REMOTE_USER: ${{ secrets.REMOTE_USER1 }}
TARGET: ${{ secrets.REMOTE_TARGET }}