summaryrefslogtreecommitdiffstats
path: root/.build.yml
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2022-12-27 13:37:10 +0000
committerYann Herklotz <git@yannherklotz.com>2022-12-27 13:37:10 +0000
commit885dcab45a48e2a083247841fb387feb731f11b5 (patch)
treeb224e2a4f5312781f42c33256238659509ef4e2f /.build.yml
parent9653e214b9eb99c7cc9f7b17b3565117bf1d18ba (diff)
downloadorg-zettelkasten-885dcab45a48e2a083247841fb387feb731f11b5.tar.gz
org-zettelkasten-885dcab45a48e2a083247841fb387feb731f11b5.zip
Update README and upload build for README
Diffstat (limited to '.build.yml')
-rw-r--r--.build.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/.build.yml b/.build.yml
new file mode 100644
index 0000000..c4abcb4
--- /dev/null
+++ b/.build.yml
@@ -0,0 +1,23 @@
+image: alpine/latest
+packages:
+ - jq
+ - curl
+ - emacs-nox
+secrets:
+ - 1bacd0af-209e-4277-9309-cf9c188c3114
+sources:
+ - https://git.sr.ht/~ymherklotz/org-zettelkasten
+tasks:
+ - html: |
+ cd org-zettelkasten
+ emacs --batch --find-file README.org --eval '(progn (setq org-html-head-include-default-style nil)
+ (setq org-html-head-include-scripts nil)
+ (setq org-html-doctype "html5")
+ (setq org-html-html5-fancy t)
+ (setq org-html-postamble nil))' \
+ --funcall org-html-export-to-html
+ - build: |
+ cd org-zettelkasten
+ set +x
+ . ~/.bearer-token
+ jq -sR '{ "query": "mutation UpdateRepo($id: Int!, $readme: String!) { updateRepository(id: $id, input: { readme: $readme }) { id } }", "variables": { "id": '241492', "readme": . } }' < README.html | curl --oauth2-bearer $BEARER_TOKEN -H "Content-Type: application/json" -d@- https://git.sr.ht/query >/dev/null 2>&1