diff --git a/.travis.yml b/.travis.yml index ca83e78..3842afd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,6 +35,45 @@ - provider: s3 access_key_id: $S3_ACCESS_KEY_ID secret_access_key: $S3_SECRET_ACCESS_KEY + bucket: "pixijs.download" + skip_cleanup: true + region: us-east-2 + cache_control: "max-age=60" + local_dir: dist + upload-dir: "pixi.js/$TRAVIS_BRANCH" + on: + all_branches: true + condition: -z $TRAVIS_TAG + # Deploy config for tagged releases + - provider: s3 + access_key_id: $S3_ACCESS_KEY_ID + secret_access_key: $S3_SECRET_ACCESS_KEY + bucket: "pixijs.download" + skip_cleanup: true + region: us-east-2 + cache_control: "max-age=2592000" + local_dir: dist + upload-dir: "pixi.js/$TRAVIS_BRANCH" + on: + all_branches: true + condition: $TRAVIS_TAG + # Deploy config for latest release + - provider: s3 + access_key_id: $S3_ACCESS_KEY_ID + secret_access_key: $S3_SECRET_ACCESS_KEY + bucket: "pixijs.download" + skip_cleanup: true + region: us-east-2 + cache_control: "max-age=1209600" + local_dir: dist + upload-dir: "pixi.js/release" + on: + all_branches: true + condition: $TRAVIS_TAG + # REMOVE AFTER CLOUDFLARE UPDATE - Deploy config for non-tag branches + - provider: s3 + access_key_id: $S3_ACCESS_KEY_ID + secret_access_key: $S3_SECRET_ACCESS_KEY bucket: "pixi.js" skip_cleanup: true acl: public_read @@ -45,7 +84,7 @@ on: all_branches: true condition: -z $TRAVIS_TAG - # Deploy config for tagged releases + # REMOVE AFTER CLOUDFLARE UPDATE - Deploy config for tagged releases - provider: s3 access_key_id: $S3_ACCESS_KEY_ID secret_access_key: $S3_SECRET_ACCESS_KEY @@ -59,7 +98,7 @@ on: all_branches: true condition: $TRAVIS_TAG - # Deploy config for latest release + # REMOVE AFTER CLOUDFLARE UPDATE - Deploy config for latest release - provider: s3 access_key_id: $S3_ACCESS_KEY_ID secret_access_key: $S3_SECRET_ACCESS_KEY