diff options
author | Yann Herklotz <git@yannherklotz.com> | 2022-11-28 18:41:11 +0000 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2022-11-28 18:41:11 +0000 |
commit | 23c6aec9e687a4d53932fdcff8703e824d30a27d (patch) | |
tree | 9b5144e5f30fd30490a20ab8c12785301aeb8539 | |
parent | bee01243d8907805117ce03657ed7e39a2d6978b (diff) | |
download | ymh-emacs-23c6aec9e687a4d53932fdcff8703e824d30a27d.tar.gz ymh-emacs-23c6aec9e687a4d53932fdcff8703e824d30a27d.zip |
Add build file
-rw-r--r-- | .build.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..c1840ed --- /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/ymh-emacs +tasks: + - html: | + cd ymh-emacs + 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 ymh-emacs + set +x + . ~/.bearer-token + jq -sR '{ "query": "mutation UpdateRepo($id: Int!, $readme: String!) { updateRepository(id: $id, input: { readme: $readme }) { id } }", "variables": { "id": '221204', "readme": . } }' < README.html | curl --oauth2-bearer $BEARER_TOKEN -H "Content-Type: application/json" -d@- https://git.sr.ht/query >/dev/null 2>&1
\ No newline at end of file |