Add publishToLocal task and add documentation about the same