- abort whole build
- clean up any previous packages' built files, maybe keep this one's around
- remember package and version
- for each changed submodule revision: (if we're still going)
- tag submodule with version
- upload to dev/prod respectively
- clean up built files
- commit to foo
- zephyr?
- release lock
-if fail:
- reset foo-incoming to old revision
- send mail with log