Setting up automatic publishing