~mjorgensen/aura-ghost

4dc68deba32810555919b8c0e09d448d0b972cdf — Matthew Jorgensen a month ago b037671 master
Remove build manifest
1 files changed, 0 insertions(+), 35 deletions(-)

D .builds/publish.yml
D .builds/publish.yml => .builds/publish.yml +0 -35
@@ 1,35 0,0 @@
image: alpine/edge
packages:
  - npm
  - aws-cli
  - zip
sources:
  - https://git.sr.ht/~mjorgensen/aura-ghost
secrets:
  - cd2e1b97-e567-47ee-95e9-b4a4894011b3
triggers:
  - action: email
    condition: failure
    to: Matthew Jorgensen <matthew@jrgnsn.net>
tasks:
  - init: |
      sudo npm install -g gscan
  - gscan: |
      gscan aura
  - dist: |
      cd aura
      git rev-parse --abbrev-ref HEAD
      LATEST_TAG=$(git describe --tags --always --abbrev=0)
      FILENAME=latest
      if [ "$(git rev-parse origin/develop)" == "$(git rev-parse HEAD)" ]; then
        FILENAME=dev
        CACHE_CONTROL=no-cache
      elif [ "$(git rev-parse master)" != "$(git rev-parse HEAD)" ]; then
        complete-build;
      elif [ "$(git describe)" == "$LATEST_TAG" ]; then
        FILENAME=$LATEST_TAG
        CACHE_CONTROL=86400
      fi
      cd ../
      zip -r aura-$FILENAME.zip aura --exclude "*/.git*"
      aws s3 cp aura-$FILENAME.zip s3://files.splat.soy/dist/aura/ --cache-control "$CACHE_CONTROL"