-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set the version before building the UI, fix release path
- Loading branch information
1 parent
21188ba
commit 796c393
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,6 +99,9 @@ build_dir="${work_dir}/stratos-ui" | |
|
||
# prebuild ui | ||
cd stratos-ui | ||
if [[ -n "${stratos_version:-""}" ]]; then | ||
sed -i package.json -e 's/"version": .*/"version": "'"$stratos_version"'"/' | ||
fi | ||
npm install | ||
npm run prebuild-ui | ||
rm -Rf ./dist | ||
|
@@ -122,7 +125,7 @@ ls -lah "${build_dir}" | |
cd "${build_dir}" | ||
package_version="${stratos_version:-"dev-$(date +%Y%m%d%H%M%S)"}" | ||
if [[ -n ${RELEASE_DIR:-""} ]] ; then | ||
zip -r [email protected] "${RELEASE_DIR}/stratos-ui-${package_version}.zip" ./* | ||
zip -r [email protected] "${work_dir}/${RELEASE_DIR}/stratos-ui-${package_version}.zip" ./* | ||
else | ||
zip -r [email protected] "${work_dir}/stratos-ui-${package_version}.zip" ./* | ||
fi | ||
|