about summary refs log tree commit diff
path: root/.build.yml
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2021-03-14 13:59:32 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2021-03-14 13:59:32 +0700
commitdf10a36fd8a160b764167a41b7ab938d9b19bb56 (patch)
treefc3cdebce7494860e00cc9cdab84ee9ff583ad93 /.build.yml
parent96e9ebd4f6f2e69d6f634b675d70b5b1542c628e (diff)
downloadblog-df10a36fd8a160b764167a41b7ab938d9b19bb56.tar.gz
Add build for sourcehut
Diffstat (limited to '.build.yml')
-rw-r--r--.build.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/.build.yml b/.build.yml
new file mode 100644
index 0000000..33f542f
--- /dev/null
+++ b/.build.yml
@@ -0,0 +1,21 @@
+image: debian/latest
+oauth: pages.sr.ht/PAGES:RW
+environment:
+  site: huyngo.srht.site
+tasks:
+- install: |
+    sudo apt install ruby-full golang
+    gem install jekyll bundler
+    git clone https://git.sr.ht/~sircmpwn/openring
+    cd openring
+    go build -o openring
+    sudo cp openring /usr/local/bin/
+- package: |
+    cd $site
+    ./create-webring.sh
+    bundle update
+    bundle exec jekyll build
+    cd _site
+    tar -cvz . > ../../site.tar.gz
+- upload: |
+    acurl -f https://pages.sr.ht/publish/$site -Fcontent=@site.tar.gz