~subsetpark/pantagruel-web

b4e464a2a8130999c4af6ba5ba434bc49378295d — Zach Smith 2 months ago 06f1f6e master
Add build
1 files changed, 32 insertions(+), 0 deletions(-)

A .build.yml
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: 4dc8a436-7395-4978-b127-3e119b4d4fd1
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 pantagruel-web/
  - build: |
      cd pantagruel-web
      ./bag index.janet
  - deploy: |
      cd pantagruel-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