CI: replace deprecated “only” syntax by “rules:if”

2 jobs for master in 49 seconds (queued for 41 seconds)
Status Job ID Name Coverage
  Build
passed build #14000

00:00:43

 
  Deploy
passed deploy #14001
restricted

00:00:06