From a8d7fabc652fdbbe6a7ed8a58d3375b0de00503e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorben=20G=C3=BCnther?= Date: Wed, 2 Nov 2022 16:22:56 +0100 Subject: [PATCH] Add build manifest --- .build.yml | 10 ++++++++++ readme.html | 8 +++++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .build.yml diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..041d6b3 --- /dev/null +++ b/.build.yml @@ -0,0 +1,10 @@ +image: archlinux +oauth: git.sr.ht/REPOSITORIES:RW git.sr.ht/PROFILE:RO +packages: + - hut-git +sources: + - https://git.xenrox.net/~xenrox/custom-readme +tasks: + - update-readme: | + cd custom-readme + hut git update --readme readme.html diff --git a/readme.html b/readme.html index 92309d2..f64c6c3 100644 --- a/readme.html +++ b/readme.html @@ -8,10 +8,16 @@

Setting the custom README

+ Either use this command hut git update --readme readme.html --repo https://git.xenrox.net/~xenrox/custom-readme + or use an automatic deployment with a + build manifest.

Removing the custom README

@@ -24,5 +30,5 @@ # find out the ID of your repository curl --oauth2-bearer $TOKEN https://git.sr.ht/query -d '{"query": "query { me { repository(name: \"custom-readme\"){ id } } }"}' # remove custom README -curl --oauth2-bearer $TOKEN https://git.sr.ht/query -d '{"query": "mutation{ updateRepository(id: 70332, input: { readme: null }) { id } }"}' +curl --oauth2-bearer $TOKEN https://git.sr.ht/query -d '{"query": "mutation{ updateRepository(id: 42, input: { readme: null }) { id } }"}' -- 2.44.0