2018-11-14 09:38:42 -05:00
|
|
|
#!/usr/bin/env python
|
2019-01-21 14:03:30 -05:00
|
|
|
# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
2018-11-14 09:38:42 -05:00
|
|
|
import os
|
|
|
|
import tempfile
|
|
|
|
from util import run, root_path
|
|
|
|
|
|
|
|
# Probably run tools/docs.py first.
|
|
|
|
# AWS CLI must be installed separately.
|
|
|
|
|
|
|
|
os.chdir(os.path.join(root_path, "website"))
|
|
|
|
|
|
|
|
# Invalidate the cache.
|
|
|
|
run([
|
|
|
|
"aws", "cloudfront", "create-invalidation", "--distribution-id",
|
2019-02-21 23:22:44 -05:00
|
|
|
"E2HNK8Z3X3JDVG", "--paths", "/*"
|
2018-11-14 09:38:42 -05:00
|
|
|
])
|
|
|
|
|
|
|
|
run(["aws", "s3", "sync", ".", "s3://deno.land/"])
|