Merge pull request #547 from Budibase/deploy-script

adding deploy script to upload assets to s3 after release
This commit is contained in:
Martin McKeaveney 2020-08-20 11:29:57 +01:00 committed by GitHub
commit e0a7df94bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) { 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

View File

@ -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",

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