diff options
-rw-r--r-- | .build.yml | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 |