aboutsummaryrefslogtreecommitdiff
path: root/.build.yml
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2020-10-26 20:55:45 -0600
committerMelody Horn <melody@boringcactus.com>2020-10-26 20:55:45 -0600
commitc7ce2058a94c7fbd22fc409738ad8d15af30b170 (patch)
treeeb88db57f9c691869974eb19768f1c21f91c9b6b /.build.yml
parentec9ce43029a4330e6fd9a617d9475a2f87f8b6e9 (diff)
downloadspec-c7ce2058a94c7fbd22fc409738ad8d15af30b170.tar.gz
spec-c7ce2058a94c7fbd22fc409738ad8d15af30b170.zip
deployment should be not terrible
Diffstat (limited to '.build.yml')
-rw-r--r--.build.yml9
1 files changed, 6 insertions, 3 deletions
diff --git a/.build.yml b/.build.yml
index d0f7270..fe0e2ed 100644
--- a/.build.yml
+++ b/.build.yml
@@ -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