Merge pull request #547 from Budibase/deploy-script
adding deploy script to upload assets to s3 after release
This commit is contained in:
commit
e0a7df94bf
|
@ -95,6 +95,7 @@ exports.serveComponentLibrary = async function(ctx) {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: component libs should be versioned based on app version
|
||||||
if (process.env.CLOUD) {
|
if (process.env.CLOUD) {
|
||||||
const appId = ctx.user.appId
|
const appId = ctx.user.appId
|
||||||
const S3_URL = encodeURI(
|
const S3_URL = encodeURI(
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -6,6 +6,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "rollup -c",
|
"build": "rollup -c",
|
||||||
"prepublishOnly": "npm run build",
|
"prepublishOnly": "npm run build",
|
||||||
|
"postpublish": "scripts/deploy.sh",
|
||||||
"testbuild": "rollup -w -c rollup.testconfig.js",
|
"testbuild": "rollup -w -c rollup.testconfig.js",
|
||||||
"dev": "run-p start:dev testbuild",
|
"dev": "run-p start:dev testbuild",
|
||||||
"start:dev": "sirv public --single --dev",
|
"start:dev": "sirv public --single --dev",
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue