Was a bartender flirting with me?

A few days ago I went to a bar and was served by a bartender who from the start had a flirty and playful behaviour. I didn't take it personally but at the end after I paid he tried engaging in a small talk with me
- complimenting my name, asking where I was coming from, he also slightly touched my arm, smiled at me and was winking an eye. I'm not sure if this just an act and trying to get tips or was it genuine flirting
Was a bartender flirting with me?
Post Opinion