-
Notifications
You must be signed in to change notification settings - Fork 0
/
.build.yml
35 lines (35 loc) · 1023 Bytes
/
.build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
image: archlinux
secrets:
- 5c5bf3b5-a730-49d9-b46a-cb6baa48092d
packages:
- fennel
- emacs-nox
- jq
sources:
- https://git.sr.ht/~fosskers/transducers.fnl
- https://gitlab.com/andreyorst/fenneldoc.git
tasks:
- fenneldoc: |
cd fenneldoc
make
- test: |
cd transducers.fnl
~/fenneldoc/fenneldoc transducers.fnl
- readme: |
cd transducers.fnl
emacs README.org --batch --eval "(setq org-html-head-include-default-style nil)" -f org-html-export-to-html --kill
sed -i '/<title>/d; /<\/title>/d' README.html
- upload: |
cd transducers.fnl
set +x # Avoid echoing the token
jq -sR '{
"query": "mutation UpdateRepo($id: Int!, $readme: String!) {
updateRepository(id: $id, input: { readme: $readme }) { id }
}", "variables": {
"id": 363616,
"readme": .
} }' < README.html \
| curl --oauth2-bearer $(cat ~/.readme-token) \
-H "Content-Type: application/json" \
-d@- https://git.sr.ht/query
echo "README Uploaded."