代码拉取完成,页面将自动刷新
language: node_js
node_js:
- 6
cache:
directories:
- node_modules
env:
global:
- FASTLY_ACTIVATE_CHANGES=true
- FASTLY_SERVICE_ID_NAME=FASTLY_SERVICE_ID_$TRAVIS_BRANCH
- FASTLY_SERVICE_ID=${!FASTLY_SERVICE_ID_NAME}
- S3_BUCKET_NAME_master=scratch-jr-production
- S3_BUCKET_NAME_develop=scratch-jr-stage
- S3_BUCKET_NAME_VAR=S3_BUCKET_NAME_$TRAVIS_BRANCH
- S3_BUCKET_NAME=${!S3_BUCKET_NAME_VAR}
deploy:
- provider: s3
on:
repo: LLK/scratchjr-website
branch:
- master
access_key_id: $AWS_ACCESS_KEY_ID_PRODUCTION
secret_access_key: $AWS_SECRET_ACCESS_KEY_PRODUCTION
bucket: $S3_BUCKET_NAME
skip_cleanup: true
acl: public_read
cache_control: "maxage=86400, s-maxage=31536000 no-transform"
local_dir: build
- provider: s3
on:
repo: LLK/scratchjr-website
branch:
- develop
access_key_id: $AWS_ACCESS_KEY_ID_STAGING
secret_access_key: $AWS_SECRET_ACCESS_KEY_STAGING
bucket: $S3_BUCKET_NAME
skip_cleanup: true
acl: public_read
cache_control: "maxage=86400, s-maxage=31536000 no-transform"
local_dir: build
after_deploy:
- make sync-fastly
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。