diff options
author | Yann Herklotz <git@yannherklotz.com> | 2021-12-25 13:46:37 +0100 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2021-12-25 13:46:37 +0100 |
commit | d34f7ef7f31ca7585b7dcdbc6f1cde52f61c565c (patch) | |
tree | 6cf23c5ad15c66ca05b39dcadb19b1b6b872a349 | |
parent | 3232760fc7f3c49faa7990ad2925258e9c28fdfa (diff) | |
download | vericert-docs-d34f7ef7f31ca7585b7dcdbc6f1cde52f61c565c.tar.gz vericert-docs-d34f7ef7f31ca7585b7dcdbc6f1cde52f61c565c.zip |
Add .build.yml for sr.ht
-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..df8bde7 --- /dev/null +++ b/.build.yml @@ -0,0 +1,23 @@ +image: debian/testing +packages: + - emacs + - hugo + - zip +sources: + - https://git.sr.ht/~ymherklotz/vericert-docs +secrets: + - fbcab77b-bd56-4356-a6b3-54c656f2b364 +tasks: + - build: | + cd vericert-docs + emacs --batch --no-init --file documentation.org --load publish.el + hugo --minify + - deploy: | + cd vericert-docs + zip -r public.zip public + set +x + key=$(cat ~/.netlify-key) + curl -H "Content-Type: application/zip" \ + -H "Authorization: Bearer $key" \ + --data-binary "@public.zip" \ + https://api.netlify.com/api/v1/sites/vericert-docs.netlify.app/deploys |