aboutsummaryrefslogtreecommitdiffstats
path: root/.build.yml
blob: 12e02b9dc917657616673664b4c480fe6ff18314 (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
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
      make public
  - 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