mirror of
https://github.com/Brandon-Rozek/website.git
synced 2024-12-22 12:02:58 +00:00
Factored out deployment for less redundant builds
This commit is contained in:
parent
ebc629f879
commit
d203927928
3 changed files with 5 additions and 2 deletions
2
.github/workflows/deploy.yml
vendored
2
.github/workflows/deploy.yml
vendored
|
@ -39,4 +39,4 @@ jobs:
|
||||||
IdentityFile ~/.ssh/id_rsa" > ~/.ssh/config
|
IdentityFile ~/.ssh/id_rsa" > ~/.ssh/config
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
run: ./sync.sh
|
run: ./deploy.sh
|
||||||
|
|
3
deploy.sh
Executable file
3
deploy.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
rsync -Pazc --exclude=*.bak --delete public/ build@brandonrozek.com:brandonrozek/
|
||||||
|
|
2
sync.sh
2
sync.sh
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
hugo
|
hugo
|
||||||
rsync -Pazc --exclude=*.bak --delete public/ brandonrozek.com:brandonrozek/
|
./deploy.sh
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue