adding deploy script to upload assets to s3 after release

This commit is contained in:
Martin McKeaveney 2020-08-20 11:09:54 +01:00
parent 5a482213c3
commit 370de9ceb7
4 changed files with 6 additions and 1 deletions

View File

@ -95,6 +95,7 @@ exports.serveComponentLibrary = async function(ctx) {
)
}
// TODO: component libs should be versioned based on app version
if (process.env.CLOUD) {
const appId = ctx.user.appId
const S3_URL = encodeURI(

File diff suppressed because one or more lines are too long

View File

@ -6,6 +6,7 @@
"scripts": {
"build": "rollup -c",
"prepublishOnly": "npm run build",
"postpublish": "scripts/deploy.sh",
"testbuild": "rollup -w -c rollup.testconfig.js",
"dev": "run-p start:dev testbuild",
"start:dev": "sirv public --single --dev",

View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
aws s3 sync dist s3://prod-budi-app-assets/assets/componentlibrary/@budibase/standard-components/dist --profile budibase