image: debian/testing packages: - python3-pip - poppler-utils - rsync sources: - https://git.sr.ht/~boringcactus/crowbar-spec secrets: - b5cb9b2b-1461-4486-95e1-886451674a89 tasks: - prep: | sudo pip3 install --progress-bar off sphinx recommonmark rinohtype regex - build-and-test: | cd crowbar-spec make all check - compress: | cd crowbar-spec/_build/html tar czf ../crowbar-spec-html.tar.gz * cd ../gmi tar czf ../crowbar-spec-gmi.tar.gz * - upload: | upload-to() { dest=$1 shift rsync --rsh="ssh -o StrictHostKeyChecking=no" -rlt8hP --del $@ services@boringcactus.com:$dest } cd crowbar-spec/_build/html upload-to /var/www/html/crowbar-lang.org/ * ../rinoh/crowbar-spec.pdf ../epub/crowbar-spec.epub cd ../gmi upload-to /var/gemini/gmi/crowbar-lang.org/ * ../rinoh/crowbar-spec.pdf ../epub/crowbar-spec.epub artifacts: - crowbar-spec/_build/rinoh/crowbar-spec.pdf - crowbar-spec/_build/epub/crowbar-spec.epub - crowbar-spec/_build/crowbar-spec-html.tar.gz - crowbar-spec/_build/crowbar-spec-gmi.tar.gz