From d124926330b576637c416622f49119bfc128e7fe Mon Sep 17 00:00:00 2001 From: Nick Parker Date: Fri, 30 Apr 2021 14:27:11 +1200 Subject: [PATCH] CI: Push docs/ to site --- .build.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .build.yml diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..b52ee9c --- /dev/null +++ b/.build.yml @@ -0,0 +1,11 @@ +# sourcehut build: push docs/* to website +image: alpine/latest +oauth: pages.sr.ht/PAGES:RW +environment: + repo: marky +tasks: +- package: | + cd $repo/docs/ + tar -cvz . > ../../site.tar.gz +- upload: | + acurl -f https://pages.sr.ht/publish/$repo.nickbp.com -Fcontent=@site.tar.gz -- 2.34.5