~subsetpark/bagatto-website

ref: e31ca7a88451bc78572c6a5a86b53f74c276b1bc bagatto-website/.build.yml -rw-r--r-- 789 bytes
e31ca7a8 — Zach Smith complete-build? a month 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
27
28
29
30
31
32
33
image: archlinux
packages:
  - curl
  - netlify
  - htmlmin
  - yuicompressor
sources:
  - https://git.sr.ht/~subsetpark/bagatto
secrets:
  -  82f3e52d-eef7-46bc-bb2f-4b93c8ce468c
environment:
  NETLIFY_SITE_ID: 7d716541-202c-43a6-8ad4-eb5c387597b5
tasks:
  - bag: |
      curl https://bagatto.co/builds/bag-x86_64-static.v0-6-1.tar.gz -o bag.tar.gz
      tar -xvf bag.tar.gz
      mv bag bagatto-website/
  - build: |
      cd bagatto-website
      ./bag web.janet
  - deploy: |
      if [ "$(git rev-parse origin/master)" != "$(git rev-parse HEAD)" ]; then \
        complete-build; \
      fi

      cd bagatto-website
      {
        set +x
        . ~/.buildsecrets
        set -x
      }
      export NETLIFY_AUTH_TOKEN
      netlify deploy --site=$NETLIFY_SITE_ID --dir=site --prod