aboutsummaryrefslogtreecommitdiffstats
path: root/.build.yml
blob: 8c1843a3a6ca61388b394c34b7717f6c210584cf (plain)
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
image: debian/testing
packages:
  - emacs-nox
  - elpa-org-contrib
  - elpa-org
  - hugo
  - zip
  - bibtex2html
sources:
  - https://git.sr.ht/~ymherklotz/yannherklotz.com
secrets:
  - fbcab77b-bd56-4356-a6b3-54c656f2b364
tasks:
  - build: |
      cd yannherklotz.com
      emacs --batch --load deps.el --find-file content.org --load publish.el
      make all
      hugo --minify
  - 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 >/dev/null 2>&1