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
|
2019-06-11 14:38:19 -04:00
|
|
|
import sys
|
2018-11-14 09:38:42 -05:00
|
|
|
import tempfile
|
2019-06-11 14:38:19 -04:00
|
|
|
from util import run, root_path, build_path
|
2018-11-14 09:38:42 -05:00
|
|
|
|
|
|
|
# Probably run tools/docs.py first.
|
|
|
|
# AWS CLI must be installed separately.
|
|
|
|
|
|
|
|
os.chdir(os.path.join(root_path, "website"))
|
|
|
|
|
2019-06-11 14:38:19 -04:00
|
|
|
deno_exe = os.path.join(build_path(), "deno")
|
|
|
|
run([sys.executable, "../tools/build_website.py"])
|
|
|
|
|
2018-11-14 09:38:42 -05:00
|
|
|
# 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/"])
|