From c7ce2058a94c7fbd22fc409738ad8d15af30b170 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Mon, 26 Oct 2020 20:55:45 -0600 Subject: deployment should be not terrible --- .build.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.build.yml b/.build.yml index d0f7270..fe0e2ed 100644 --- a/.build.yml +++ b/.build.yml @@ -19,12 +19,15 @@ tasks: cd crowbar-spec make check - upload: | + upload() { + rsync --rsh="ssh -o StrictHostKeyChecking=no" -rlt8hP --del $@ services@boringcactus.com:/var/www/html/crowbar-lang.org/ + } cd crowbar-spec - rsync -rlt8hP --del *.html services@boringcactus.com:/var/www/html/crowbar-lang.org/ - rsync -rlt8hP --del spec.pdf services@boringcactus.com:/var/www/html/crowbar-lang.org/ + upload *.html spec.pdf - notify: | cd crowbar-spec - (sleep 20; echo ':j #crowbar-lang'; echo "/me crowbar spec updated: $(git log -1 --no-decorate --oneline)") | sic -h chat.freenode.net -n crowbar-notifs + message="crowbar spec updated: $(git log -1 --no-decorate --oneline)" + echo "$message" | ssh -o StrictHostKeyChecking=no services@boringcactus.com 'sh -c "cat > ~/irc/chat.freenode.net/#crowbar-lang/in"' artifacts: - crowbar-spec/spec.pdf - spec-html.tar.gz -- cgit v1.2.3