From 16155bb2b9efb9caccc3751b1f5259c485705074 Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Sat, 20 Feb 2021 17:50:01 -0800 Subject: [PATCH] added build for publishing --- .build.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .build.yml diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..ca52fcb --- /dev/null +++ b/.build.yml @@ -0,0 +1,16 @@ +image: alpine/latest +packages: + - hugo +oauth: pages.sr.ht/PAGES:RW +environment: + site: thrrgilag.net +triggers: + - action: email + condition: always + to: Morgan McMillian +tasks: +- package: | + cd $site + tar -C public -cvz . > ../site.tar.gz +- upload: | + acurl -f https://pages.sr.ht/publish/$site -Fcontent=@site.tar.gz