~gpanders/gpanders.com

ref: 79ce0c030a64f09ba2cfc11fb236ae4dfed7f97e gpanders.com/.build.yml -rw-r--r-- 599 bytes
79ce0c03Gregory Anders Deploy site as zip file to Netlify API 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
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 -r site.zip netlify.toml public
  - 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