diff options
author | Yann Herklotz <git@yannherklotz.com> | 2021-12-25 13:17:10 +0100 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2021-12-25 13:17:10 +0100 |
commit | 786e3256f0647ce7c0961493bdd3da14873c2c85 (patch) | |
tree | a453a02853c850a8cbdca7181ea736674dcc0bcf /.build.yml | |
parent | 9cdf3cf9eaaf3cc5de49f762bb90844b70e8b1ae (diff) | |
download | yannherklotz.com-786e3256f0647ce7c0961493bdd3da14873c2c85.tar.gz yannherklotz.com-786e3256f0647ce7c0961493bdd3da14873c2c85.zip |
Add .build.yml for sr.ht builds
Diffstat (limited to '.build.yml')
-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..4f40563 --- /dev/null +++ b/.build.yml @@ -0,0 +1,23 @@ +image: debian/testing +packages: + - emacs + - hugo + - zip +sources: + - https://git.sr.ht/~ymherklotz/yannherklotz.com +secrets: + - fbcab77b-bd56-4356-a6b3-54c656f2b364 +tasks: + - build: | + cd yannherklotz.com + emacs --batch --no-init --file content.org --load publish.el + hugo + - deploy: | + cd yannherklotz.com + 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/yannherklotz.netlify.app/deploys |