From 5ada504d5667a6f17ee2631dd471b073b332dd33 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Mon, 26 Oct 2020 23:22:29 -0600 Subject: build spec in gemtext too --- .build.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to '.build.yml') diff --git a/.build.yml b/.build.yml index fe0e2ed..cf489ae 100644 --- a/.build.yml +++ b/.build.yml @@ -15,19 +15,24 @@ tasks: make - compress: | tar czf spec-html.tar.gz crowbar-spec/*.html + tar czf spec-gmi.tar.gz crowbar-spec/*.gmi - test-page-count: | cd crowbar-spec make check - upload: | - upload() { - rsync --rsh="ssh -o StrictHostKeyChecking=no" -rlt8hP --del $@ services@boringcactus.com:/var/www/html/crowbar-lang.org/ + upload-to() { + dest=$1 + shift + rsync --rsh="ssh -o StrictHostKeyChecking=no" -rlt8hP --del $@ services@boringcactus.com:$dest } cd crowbar-spec - upload *.html spec.pdf + upload-to /var/www/html/crowbar-lang.org/ *.html spec.pdf + upload-to /var/www/gmi/crowbar-lang.org/ *.gmi spec.pdf - notify: | cd crowbar-spec 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"' + echo "/NOTICE #crowbar-lang :$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 + - spec-gmi.tar.gz -- cgit v1.2.3