-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (22 loc) · 776 Bytes
/
Makefile
File metadata and controls
29 lines (22 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
PHONY: github aws-assets aws-htmljs aws-cache pudding client
github:
rm -rf docs
cp -r dist/ docs
git add -A
git commit -m "update dev version"
git push
archive:
zip -r archive.zip dev
git add -A
git commit -m "archive"
git push
client:
npm run depudding
aws-assets:
aws s3 sync dist s3://pudding.cool/2020/10/police-misconduct --delete --cache-control 'max-age=31536000' --exclude 'index.html' --exclude 'bundle.js'
aws-htmljs:
aws s3 cp dist/index.html s3://pudding.cool/2020/10/police-misconduct/index.html
aws s3 cp dist/bundle.js s3://pudding.cool/2020/10/police-misconduct/bundle.js
aws-cache:
aws cloudfront create-invalidation --distribution-id E13X38CRR4E04D --paths '/2020/10/police-misconduct*'
pudding: aws-assets aws-htmljs aws-cache archive