Publishing with multiple environments