summaryrefslogtreecommitdiffstats
path: root/.build.yml
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2021-05-07 17:32:18 +0200
committerAhmed Abdelhalim <[email protected]>2021-05-07 17:57:14 +0200
commit6fb25c034abf20669ba06889c6e72dbb4e67e953 (patch)
treec26e2402ae0f20705b0e40ad7f03a35e13efd470 /.build.yml
parent53a05dabac3071bb0f8414e665de210310f37cff (diff)
Add build script and fix yarn versions/commands
Diffstat (limited to '.build.yml')
-rw-r--r--.build.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/.build.yml b/.build.yml
new file mode 100644
index 0000000..0dfec7d
--- /dev/null
+++ b/.build.yml
@@ -0,0 +1,19 @@
+image: alpine/latest
+oauth: pages.sr.ht/PAGES:RW
+
+packages:
+ - yarn
+ - nodejs
+
+environment:
+ site: a14m.me
+
+tasks:
+ - build: |
+ cd a14m.srht.site
+ yarn install
+ yarn build
+ tar -C public -cvz . > ../site.tar.gz
+
+ - upload: |
+ acurl -f https://pages.sr.ht/publish/$site [email protected]