From 079986187390c4890f6863b77f8d9b5117ab1611 Mon Sep 17 00:00:00 2001 From: Matthew Binning Date: Mon, 23 Mar 2026 06:59:46 -0700 Subject: [PATCH] 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. --- .forgejo/workflows/deploy.yaml | 2 ++ deploy.sh | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 91748c3..47c150a 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -5,6 +5,8 @@ on: branches: - master - develop + schedule: + - cron: '0 2 * * *' jobs: deploy: diff --git a/deploy.sh b/deploy.sh index afc1ca8..f329ca7 100755 --- a/deploy.sh +++ b/deploy.sh @@ -15,10 +15,6 @@ fi CMD=$1 case $CMD in - sync) - rsync -avz src/ /var/lib/www/ - ;; - build) printf "Building blog with mdbook...\n" [ -s src ] || ln -s /var/lib/www src