diff options
| -rw-r--r-- | .build.yml | 15 | ||||
| -rwxr-xr-x | post.sh | 6 |
2 files changed, 6 insertions, 15 deletions
diff --git a/.build.yml b/.build.yml deleted file mode 100644 index fe492b7..0000000 --- a/.build.yml +++ /dev/null @@ -1,15 +0,0 @@ -image: alpine/edge -oauth: pages.sr.ht/PAGES:RW -packages: -- hut -- emacs-nox -environment: - site: lemurianmage.srht.site -tasks: -- build: - ./build.sh -- package: | - cd public - tar -cvz . > ../site.tar.gz -- upload: | - hut pages publish -d $site site.tar.gz @@ -0,0 +1,6 @@ +#!/bin/sh +./build.sh +tmpfile=$(mktemp) +tar -C public/ -cvz . > $tmpfile +curl --oauth2-bearer "$1" -Fcontent=@"$tmpfile" https://pages.sr.ht/publish/lemurianmage.srht.site +rm "$tmpfile" |
