Factored out deployment for less redundant builds

This commit is contained in:
Brandon Rozek 2022-11-30 00:10:25 -05:00
parent ebc629f879
commit d203927928
3 changed files with 5 additions and 2 deletions

View file

@ -39,4 +39,4 @@ jobs:
IdentityFile ~/.ssh/id_rsa" > ~/.ssh/config
- name: Deploy
run: ./sync.sh
run: ./deploy.sh

3
deploy.sh Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env sh
rsync -Pazc --exclude=*.bak --delete public/ build@brandonrozek.com:brandonrozek/

View file

@ -1,4 +1,4 @@
#!/usr/bin/env sh
hugo
rsync -Pazc --exclude=*.bak --delete public/ brandonrozek.com:brandonrozek/
./deploy.sh