Skip to content

Instantly share code, notes, and snippets.

@tamanugi
Created February 20, 2017 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tamanugi/a653086362936b72638daf4dd34349f0 to your computer and use it in GitHub Desktop.
Save tamanugi/a653086362936b72638daf4dd34349f0 to your computer and use it in GitHub Desktop.
[メモ] TravisCIでnpm run buildしてからS3にデプロイしてCloudFrontで配信する ref: http://qiita.com/tamanugi/items/39a52dbb6704cb563657
language: node_js
node_js:
- "6"
before_deploy:
- npm run build
deploy:
provider: s3
bucket: {{bucket名}}
region: ap-northeast-1
endpoint: {{bucket名}}.s3-ap-northeast-1.amazonaws.com
skip_cleanup: true
local-dir: dist
on:
branch: master
$ gem install travis
$ travis --add deploy.access_key_id {{access_key_id}}
$ travis --add deploy.secret_access_key {{secret_access_key}}
access_key_id:
secure: xxxxxxxxx
secret_access_key:
secure: xxxxxxxxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment