~subsetpark/bagatto-website

bagatto-website/.build.yml -rw-r--r-- 964 bytes
7fa2c251 — Zach Smith Minor refactors 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
34
35
36
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 index.janet
  - deploy: |
      cd bagatto-website
      # Only deploy on master.
      if [ "$(git rev-parse origin/master)" != "$(git rev-parse HEAD)" ]; then \
        complete-build; \
      fi
      # Source the secrets in ~/.buildsecrets as environment variables.
      {
        set +x
        . ~/.buildsecrets
        set -x
      }
      # Set the Netlify environment variable.
      export NETLIFY_AUTH_TOKEN
      # Call the deploy.
      netlify deploy --site=$NETLIFY_SITE_ID --dir=site --prod