new_to_publish fires multiple times

OK! found how to – there is 2 little information about
how to attach a function to a status change but this hook
does the job and does it well.

function miniupdate_webnews( $new_status, $old_status, $post ) {
    if ( $old_status == 'draft' && $new_status == 'publish' ) {

         // YOUR FUNCTION HERE...

    }
}
add_action( 'transition_post_status', 'miniupdate_webnews', 10, 3 );