~subsetpark/fugue-web

608de16461ebb1a891e08d959a09f5408582cf79 — Zach Smith 2 months ago 26815d0
Add build
2 files changed, 36 insertions(+), 0 deletions(-)

A .build.yml
A .gitignore
A .build.yml => .build.yml +34 -0
@@ 0,0 1,34 @@
image: archlinux
packages:
  - curl
  - netlify
secrets:
  -  82f3e52d-eef7-46bc-bb2f-4b93c8ce468c
environment:
  NETLIFY_SITE_ID: fa3503c9-bfa1-4a48-ac8d-ee5c8aa05fce
sources:
  - https://git.sr.ht/~subsetpark/jnj
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 fugue-web/
  - build: |
      cd fugue-web
      ./bag index.janet
  - deploy: |
      cd fugue-web
      # 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

A .gitignore => .gitignore +2 -0
@@ 0,0 1,2 @@
/tags
/site