aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlemurianmage <azureazure@disroot.org>2025-11-25 20:52:46 +0100
committerlemurianmage <azureazure@disroot.org>2025-11-25 20:52:46 +0100
commit92274c283758b04699166d08409da58827b5ef9e (patch)
tree01b50d95deb9b0ccea03c329b4ff98262551ce58
parent2236e7d5a64a32a16304d1f1d0efbd01a0660eb6 (diff)
downloadslimegirl.nexus-92274c283758b04699166d08409da58827b5ef9e.tar.gz
build de-automation
-rw-r--r--.build.yml15
-rwxr-xr-xpost.sh6
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
diff --git a/post.sh b/post.sh
new file mode 100755
index 0000000..ca43302
--- /dev/null
+++ b/post.sh
@@ -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"