Created
February 20, 2017 15:29
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gem install travis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ travis --add deploy.access_key_id {{access_key_id}} | |
$ travis --add deploy.secret_access_key {{secret_access_key}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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