File tree 4 files changed +14
-3
lines changed 4 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -36,4 +36,4 @@ deploy:
36
36
on :
37
37
branch : master
38
38
after_deploy :
39
- - AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY AWS_SECRET_ACCESS_KEY=$AWS_SECRET_KEY ./.travis/reset_cloudfront_cache.sh
39
+ - make invalidate_cache
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env python3
2
+ from boto .cloudfront import CloudFrontConnection
3
+
4
+ aws_cf_distribution_id = 'EL6HA8RZFI08I'
5
+
6
+ objects = ['/index.html' ]
7
+ conn = CloudFrontConnection ()
8
+ print (conn .create_invalidation_request (aws_cf_distribution_id , objects ))
Original file line number Diff line number Diff line change @@ -26,4 +26,7 @@ s3_upload:
26
26
run_nb :
27
27
jupyter nbconvert --to notebook --execute " Examples.ipynb" --output " Examples.$( GIT_COMMIT) .ipynb"
28
28
29
- .PHONY : all render s3_upload run_nb travis clean
29
+ invalidate_cache :
30
+ AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY AWS_SECRET_ACCESS_KEY=$AWS_SECRET_KEY python ./.travis/cloudfront_invalidate.py
31
+
32
+ .PHONY : all render s3_upload run_nb travis clean invalidate_cache
Original file line number Diff line number Diff line change 8
8
jinja2-highlight
9
9
markdown
10
10
scikit-misc
11
- boto
11
+ boto3
You can’t perform that action at this time.
0 commit comments