1
0
Fork 0
mirror of synced 2024-07-03 05:20:32 +12:00

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) {
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