mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
d86e897ba6
* WIP * Attempt to wire up dockerhub building in GHA * Fix issue with mime types * Skip linux/arm, Cypress only installs on 64-bit * Update dockerhub.yaml * Update comment
19 lines
507 B
Bash
Executable File
19 lines
507 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
|
DIST_VERSION=$(git describe --abbrev=0 --tags)
|
|
|
|
DIR=$(dirname "$0")
|
|
|
|
# If we're not using custom SDKs and on a branch other than master, generate a version akin go develop.element.io
|
|
if [[ $USE_CUSTOM_SDKS == false ]] && [[ $BRANCH != 'master' ]]
|
|
then
|
|
DIST_VERSION=$("$DIR"/get-version-from-git.sh)
|
|
fi
|
|
|
|
DIST_VERSION=$("$DIR"/normalize-version.sh "$DIST_VERSION")
|
|
VERSION=$DIST_VERSION yarn build
|
|
echo "$DIST_VERSION" > /src/webapp/version
|