summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-02-19 20:59:35 +0100
committerlemon <lsof@mailbox.org>2022-02-19 20:59:35 +0100
commitde4744ca20ba04e2b760218a68776c6f8a6b4e01 (patch)
tree5fd42ec1aef5d5934df0cebbdbba5691daa24225
parent8b3f0aa590b51cfd7696ed212adf94fa43a0e858 (diff)
automate deployment
-rw-r--r--.build.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/.build.yml b/.build.yml
new file mode 100644
index 0000000..9a05a09
--- /dev/null
+++ b/.build.yml
@@ -0,0 +1,16 @@
+image: alpine/edge
+packages: [ zola ]
+oauth: pages.sr.ht/PAGES:RW
+environment:
+ site: lemon.rip
+sources:
+ - https://git.sr.ht/~lsof/site
+tasks:
+ - build: |
+ cd site
+ zola build
+ - package: |
+ cd site
+ tar -C public -cvz . > ../site.tar.gz
+ - upload: |
+ acurl -f https://pages.sr.ht/publish/$site -Fcontent=@site.tar.gz