Use :publishing hook instead of deprecated :restart.