Skip to content

Commit e8c8d8f

Browse files
author
Tim Hopper
committed
Deploy to netlify
1 parent bb5534c commit e8c8d8f

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

.travis.yml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,11 @@ after_script:
1313
- echo "Rendered notebook http://nbviewer.jupyter.org/urls/s3.amazonaws.com/pythonplotbuilds/tdhopper/pythonplot.com/$TRAVIS_BUILD_NUMBER/$TRAVIS_JOB_NUMBER/Examples.$(git log -1 --pretty=format:'%h').ipynb"
1414
addons:
1515
artifacts: true
16+
before_deploy:
17+
- npm install netlify-cli -g
1618
deploy:
17-
- provider: s3
18-
access_key_id: $AWS_ACCESS_KEY # declared in Travis repo settings
19-
secret_access_key: $AWS_SECRET_KEY
20-
bucket: pythonplot.com
21-
endpoint: pythonplot.com.s3-website-us-east-1.amazonaws.com
22-
region: us-east-1
23-
skip_cleanup: true
24-
local-dir: web
25-
acl: public_read
26-
default_text_charset: 'utf-8'
27-
detect_encoding: true
28-
on:
29-
branch: master
30-
after_deploy:
31-
- AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY AWS_SECRET_ACCESS_KEY=$AWS_SECRET_KEY python .travis/invalidate_cloudfront.py
19+
provider: script
20+
script: netlify deploy -s $NETLIFY_SITE_ID -t $NETLIFY_ACCESS_TOKEN -p ./web
21+
skip_cleanup: true
22+
on:
23+
branch: netlify

0 commit comments

Comments
 (0)