diff options
author | Melody Horn <melody@boringcactus.com> | 2020-10-26 23:22:29 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2020-10-26 23:22:29 -0600 |
commit | 5ada504d5667a6f17ee2631dd471b073b332dd33 (patch) | |
tree | 130ed731247e5fe01ed2fae366e7bf08aef46b37 /.build.yml | |
parent | c7ce2058a94c7fbd22fc409738ad8d15af30b170 (diff) | |
download | spec-5ada504d5667a6f17ee2631dd471b073b332dd33.tar.gz spec-5ada504d5667a6f17ee2631dd471b073b332dd33.zip |
build spec in gemtext too
Diffstat (limited to '.build.yml')
-rw-r--r-- | .build.yml | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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 |