Skip to content

Commit

Permalink
Add draft script
Browse files Browse the repository at this point in the history
  • Loading branch information
ericthelemur committed Oct 26, 2024
1 parent afad9f0 commit 377a298
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions draft.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh
set -e

export SCRIPT_DIR=$(dirname "$(realpath $0)")
cd $SCRIPT_DIR && echo "Running in $SCRIPT_DIR"

git checkout draft
if [ -z $NO_PULL ]; then
git fetch --all --prune
git reset --hard origin/draft
git pull --recurse-submodules
fi

# Build main
./zola build --base-url https://wasd-draft.uwcs.co.uk --output-dir ../draft/public --force

[[ -f /srv/restart-lighttpd.sh ]] && sudo /srv/restart-lighttpd.sh

0 comments on commit 377a298

Please sign in to comment.