Give him hints
I'd suggest not doing what I did to my old crush in seventh grade and just say "I'm gay and I like you", that got me nowhere
Ignoring the fact that he already had a girlfriend (who I though was a lesbian and probably is), that could be a similar outcome for you
So just give him some hints, and make them more and more obvious until you just straight up (or gay up, if you will) tell him