Added an optional reload-configuration task when publishing a layer