mirror of
https://github.com/CompassConnections/Compass.git
synced 2025-12-23 22:18:43 -05:00
42 lines
1010 B
Bash
Executable File
42 lines
1010 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
cd "$(dirname "$0")"/..
|
|
|
|
COMMIT_SHA=$(git rev-parse HEAD)
|
|
COMMIT_REF=$(git branch --show-current)
|
|
COMMIT_MESSAGE=$(git log -1 --pretty=format:"%s")
|
|
COMMIT_DATE=$(git log -1 --pretty=format:"%cI")
|
|
BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
|
|
|
|
cat <<EOF > web/public/live-update.json
|
|
{
|
|
"commitSha": "$COMMIT_SHA",
|
|
"commitRef": "$COMMIT_REF",
|
|
"commitMessage": "$COMMIT_MESSAGE",
|
|
"commitDate": "$COMMIT_DATE",
|
|
"buildDate": "$BUILD_DATE"
|
|
}
|
|
EOF
|
|
|
|
cat web/public/live-update.json
|
|
|
|
yarn build-web-view
|
|
|
|
echo npx @capawesome/cli apps:bundles:create \
|
|
--app-id 969bc540-8077-492f-8403-b554bee5de50 \
|
|
--channel default \
|
|
--commitMessage "$COMMIT_MESSAGE" \
|
|
--commitRef $COMMIT_REF \
|
|
--commitSha $COMMIT_SHA \
|
|
--path web/out
|
|
|
|
npx @capawesome/cli apps:bundles:create \
|
|
--app-id 969bc540-8077-492f-8403-b554bee5de50 \
|
|
--channel default \
|
|
--commitMessage "$COMMIT_MESSAGE" \
|
|
--commitRef $COMMIT_REF \
|
|
--commitSha $COMMIT_SHA \
|
|
--path web/out
|