feat: Add a nightly build
Added a scheduled nightly build workflow to keep the deployed site current with any content changes, particularly in the private submodule.
This commit is contained in:
parent
2896fd81a2
commit
0799861873
2 changed files with 2 additions and 4 deletions
|
|
@ -5,6 +5,8 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
- develop
|
- develop
|
||||||
|
schedule:
|
||||||
|
- cron: '0 2 * * *'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
|
|
|
||||||
|
|
@ -15,10 +15,6 @@ fi
|
||||||
CMD=$1
|
CMD=$1
|
||||||
|
|
||||||
case $CMD in
|
case $CMD in
|
||||||
sync)
|
|
||||||
rsync -avz src/ /var/lib/www/
|
|
||||||
;;
|
|
||||||
|
|
||||||
build)
|
build)
|
||||||
printf "Building blog with mdbook...\n"
|
printf "Building blog with mdbook...\n"
|
||||||
[ -s src ] || ln -s /var/lib/www src
|
[ -s src ] || ln -s /var/lib/www src
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue