aboutsummaryrefslogtreecommitdiffstats
path: root/.build/readme.yml
diff options
context:
space:
mode:
authorGravatar Tom Willemse2022-03-23 19:05:29 -0700
committerGravatar Tom Willemse2022-03-23 19:05:29 -0700
commitba5d9c29f3defd28c5973d257a86f910deb78986 (patch)
tree7478652177e7a39cbfc575b83cd68f6dfe0aa808 /.build/readme.yml
parent39ba8e49d69c2abc904e28c8cdfeb782e3c065fe (diff)
downloadtekuti-el-ba5d9c29f3defd28c5973d257a86f910deb78986.tar.gz
tekuti-el-ba5d9c29f3defd28c5973d257a86f910deb78986.zip
Set up automated builds on Sourcehut
This builds both a package archive and the readme.
Diffstat (limited to '.build/readme.yml')
-rw-r--r--.build/readme.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/.build/readme.yml b/.build/readme.yml
new file mode 100644
index 0000000..32deacc
--- /dev/null
+++ b/.build/readme.yml
@@ -0,0 +1,20 @@
+image: alpine/latest
+packages:
+ - make
+ - emacs-nox
+secrets:
+ - 71a00305-bdc9-4108-84a0-2d42d5f824d6
+tasks:
+ - build: |
+ cd tekuti-el
+ make README.html
+ - readme: |
+ cd tekuti-el
+ set +x
+ curl --fail-with-body \
+ -H "Content-Type: text/html" \
+ -H "Authorization: Bearer $(cat ~/.pcomplete-p4-auth)" \
+ -XPUT \
+ --data-binary @README.html \
+ 'https://git.sr.ht/api/repos/tekuti-el/readme' \
+ && echo "README set"