image: debian/testing packages: - pandoc - weasyprint - poppler-utils - sic - rsync sources: - https://git.sr.ht/~boringcactus/crowbar-spec secrets: - b5cb9b2b-1461-4486-95e1-886451674a89 tasks: - build: | cd crowbar-spec 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-to() { dest=$1 shift rsync --rsh="ssh -o StrictHostKeyChecking=no" -rlt8hP --del $@ services@boringcactus.com:$dest } cd crowbar-spec upload-to /var/www/html/crowbar-lang.org/ *.html spec.pdf upload-to /var/gemini/gmi/crowbar-lang.org/ *.gmi spec.pdf - notify: | cd crowbar-spec message="crowbar spec updated: $(git log -1 --no-decorate --oneline)" 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