~subsetpark/ec-web

8446063b7d7499cad10b83177733e789055c24a6 — Zach Smith 2 months ago 9288040 master
add build
2 files changed, 33 insertions(+), 0 deletions(-)

A .build.yml
M .gitignore
A .build.yml => .build.yml +32 -0
@@ 0,0 1,32 @@
image: archlinux
packages:
  - curl
  - netlify
secrets:
  -  82f3e52d-eef7-46bc-bb2f-4b93c8ce468c
environment:
  NETLIFY_SITE_ID: 7511e498-c7ee-4c2a-b46e-4aa16598e4e0
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 ec-web/
  - build: |
      cd ec-web
      ./bag index.janet
  - deploy: |
      cd ec-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

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