Merge pull request #5692 from zmstone/ensure-no-gpb-in-release

chore(build): ensure no gpb in release
This commit is contained in:
Zaiming (Stone) Shi 2021-09-08 21:32:22 +02:00 committed by GitHub
commit 51f683664a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

4
build
View File

@ -65,6 +65,10 @@ log() {
make_rel() { make_rel() {
# shellcheck disable=SC1010 # shellcheck disable=SC1010
./rebar3 as "$PROFILE" do release,tar ./rebar3 as "$PROFILE" do release,tar
if [ "$(find "_build/$PROFILE/rel/emqx/lib/" -name 'gpb-*' -type d)" != "" ]; then
echo "gpb should not be included in the release"
exit 1
fi
} }
## unzip previous version .zip files to _build/$PROFILE/rel/emqx/releases before making relup ## unzip previous version .zip files to _build/$PROFILE/rel/emqx/releases before making relup