~gpanders/gpanders.com

ref: ff651fa9483a59cccc59d78d1a78d2b946bb552f gpanders.com/.build.yml -rw-r--r-- 632 bytes
ff651fa9Gregory Anders Simplify CSP 5 months ago
                                                                                
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
image: nixos/unstable
packages:
  - nixos.hugo
  - nixos.zip
  - nixos.curl
secrets:
  - b8cb4b17-4157-4870-9b81-10a3fa0d7b91
triggers:
  - action: email
    condition: failure
    to: Gregory Anders <greg@gpanders.com>
tasks:
  - build: |
      cd gpanders.com
      hugo --minify
      zip site.zip netlify.toml
      cd public
      zip -r ../site.zip .
  - deploy: |
      set +x
      . ~/.env
      curl -H 'Content-Type: application/zip' \
           -H "Authorization: Bearer $TOKEN" \
           --data-binary "@gpanders.com/site.zip" \
           https://api.netlify.com/api/v1/sites/$SITE/deploys >/dev/null
      set -x