Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Nov 7, 2016
2 parents dd6028a + 3e25d0c commit 000b9d9
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions _develop/scripts/release.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#!/bin/bash

VERSION="$1"

if [ -z "$VERSION" ]; then
echo "Version required."
exit
else
echo "Releasing $VERSION"
fi

rm -r .release
rm -r dist
mkdir .release
Expand All @@ -23,3 +32,16 @@ find quill/examples -type f -exec sed -i "" 's/href="\/\//href="https:\/\//g' {}
find quill/examples -type f -exec sed -i "" 's/src="\/\//src="https:\/\//g' {} \;

tar -czf quill.tar.gz quill

aws s3 cp quill/quill.js s3://cdn.quilljs.com/$VERSION/ --cache-control max-age=604800 --content-type "application/javascript; charset=utf-8"
aws s3 cp quill/quill.min.js s3://cdn.quilljs.com/$VERSION/ --cache-control max-age=604800 --content-type "application/javascript; charset=utf-8"
aws s3 cp quill/quill.core.js s3://cdn.quilljs.com/$VERSION/ --cache-control max-age=604800 --content-type "application/javascript; charset=utf-8"
aws s3 cp quill/quill.bubble.css s3://cdn.quilljs.com/$VERSION/ --cache-control max-age=604800 --content-type "text/css; charset=utf-8"
aws s3 cp quill/quill.core.css s3://cdn.quilljs.com/$VERSION/ --cache-control max-age=604800 --content-type "text/css; charset=utf-8"
aws s3 cp quill/quill.snow.css s3://cdn.quilljs.com/$VERSION/ --cache-control max-age=604800 --content-type "text/css; charset=utf-8"
aws s3 cp quill/quill.min.js.map s3://cdn.quilljs.com/$VERSION/ --cache-control max-age=604800 --content-type "application/json; charset=utf-8"
aws s3 sync s3://cdn.quilljs.com/$VERSION/ s3://cdn.quilljs.com/latest/

cd ..
git tag v$VERSION -m "Version $VERSION"
git push origin v$VERSION

0 comments on commit 000b9d9

Please sign in to comment.