7 if [ -z "$BUILD_ID" ]; then
11 build_and_publish_package() {
18 git checkout -- debian/changelog
20 # Bump the current version by a minor number. Having the distro parse
21 # at the end with current date, git rev and build id will do the rest.
22 new_base_version=$(dpkg-parsechangelog --show-field Version).1
23 dch --newversion "$new_base_version~$(date +%Y%m%d).$BUILD_ID.$distro.$(git rev-parse --short HEAD)" \
24 -D "$distro" "Nightly release"
26 debuild -S -sa -I "$debuild_args"
33 build_and_publish_package "$top_dir" xenial "ppa:morphis/anbox-support"
34 build_and_publish_package "$top_dir" bionic "ppa:morphis/anbox-support"