diff options
Diffstat (limited to 'script/deploy')
-rwxr-xr-x | script/deploy | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/script/deploy b/script/deploy index ec2a6f3..40a36a9 100755 --- a/script/deploy +++ b/script/deploy @@ -30,6 +30,9 @@ printf "Re-generating static website from source ...\\n" && cabal v2-run exe:site -- clean >/dev/null 2>&1 \ && cabal v2-run exe:site -- build >/dev/null 2>&1 ) +printf "Running checks ...\\n" +( cd "${root}" && ./script/check ) + [ -z "$( git status --porcelain )" ] || { ( >&2 printf "error: dirty working tree\\n" ) printf "Aborting deployment due to unstaged changes or untracked files.\\n" @@ -55,5 +58,5 @@ curl \ http://www.bing.com/ping?sitemap=https%3A%2F%2Fwww.skreutz.com/sitemap.xml \ || ( >&2 printf "error: failed to submit live sitemap to bing.com\\n" ) -# shellcheck source=./check -. "${root}/script/check" +# shellcheck source=./check-online +. "${root}/script/check-online" |