add publish mode choice for project build