Skip to content

Commit c6634b2

Browse files
committed
New script to upload to s3
1 parent ff0ead4 commit c6634b2

File tree

2 files changed

+3
-37
lines changed

2 files changed

+3
-37
lines changed

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
"gh-pages": "npm run build-static && gh-pages -d static",
1919
"version": "npm run build-static && npm run build-react && auto-changelog -p && git add CHANGELOG.md",
2020
"release": "git push --follow-tags && npm pack && gh-release -y -a *.tgz && npm run upload-to-s3",
21-
"upload-to-s3": "cd scripts && ./upload-to-s3.js"
21+
"s3-static": "aws s3 cp static s3://cdn.tmb.cat/icons/v$npm_package_version/static/ --recursive --acl public-read",
22+
"s3-dist": "aws s3 cp dist s3://cdn.tmb.cat/icons/v$npm_package_version/dist/ --recursive --acl public-read",
23+
"upload-to-s3": "npm run s3-static && npm run s3-dist"
2224
},
2325
"auto-changelog": {
2426
"template": "keepachangelog",

scripts/upload-to-s3.js

-36
This file was deleted.

0 commit comments

Comments
 (0)