I don't know if this question has been asked recently, but for some time, I frequently saw people asking questions along the line of "Action anime with gay lead?" "Anime with no romance but gay characters", and so forth. So, I thought I would make a list of shows and actually give a rundown on their gay rep. The categories are heavily implied, canon, confirmed in source, and played for jokes, and I also note the character involved. This list got long, so I decided to leave some out, plus obviously I don't know of every anime. It also isn't an automatic recommendation of everything on this list, and includes a couple which I haven't seen but researched. Romance anime are excluded, as per the title. I count intersex under the LGBTQ umbrella. By the way, if you want more LGBTQ stories, it's also a good idea to check out manga, which has more.
Cardcaptor Sakura
Genre: Magical Girl monster of the week
Status: Canon (major characters), confirmed in source. Sakura's older brother and his best friend have a romantic arc that leads to a relationship (M/M). Major character Syaoran canonically has a crush on said best friend (M->M), and major character Tomoyo, Sakura's best friend (F/F), has a crush on her. The LGBTQ contents are somewhat lowered from manga to anime, but they still clearly exist.
Kirakira Pretty Cure
Genre: Magical Girl
Status: Canon (main characters). Main cast members Akira and Yukari (F/F) have a developing relationship where they fall in love.
Revolutionary Girl Utena
Genre: Magical girl-esque, psychological, surrealism
Status: Canon (main characters). Utena originally identifies as straight, but by the end, is clearly involved with Anthy (F/F) and is also cosmically married to her. Another prominent lesbian character exists (F->F), a gay couple develops too (M/M), and the antagonist is interested in both boys and girls (M->F&M). The story has heavy LGBTQ elements and themes, which make up a large amount of the plot, but in a non-romance genre way.
The Summer Hikaru Died
Genre: Rural horror
Status: Canon (main character). Main character Yoshiki is gay (M->M). The other main character, "Hikaru", is not explicitly gay, as he doesn't feel romantic attraction in a normal way, but has a deep attraction to Yoshiki and is heavily queer-coded—plus, feeling romantic attraction in differently or not at all is in itself a queer identity.
Sk8 The Infinity
Genre: Sports
Status: Canon (antagonist). The main antagonist, Adam, is a flamboyantly gay character who continually hits on underage Langa (M->M). In my opinion, this premise is bad representation, but Adam is later given depth and significant kindness by the narrative, and his sexuality isn't portrayed as inherently negative—in fact, the whole anime has heavy queer themes, as the characters, most of whom have some homosexual tension with each other, go to a hidden-away place to dress up and be themselves, similar to the gay scene.
Astra Lost In Space
Genre: Sci-fi thriller/comedy
Status: Canon (main character). Main cast member Luca is intersex and likes both men and women (M-ish->F&M).
Sanda
Genre: Action, dystopia
Status: Canon (main characters). Major character Ono is in love with and sexually desires main character Fuyumura, and Fuyumura later returns her feelings (F/F).
Zombieland Saga
Genre: Idols, supernatural, comedy
Status: Canon (main character). Main cast member Lily is a trans girl. Incidentally, this is probably the best trans rep on this list, being accurate while non-stereotypical.
IDOLiSH7
Genre: Idols, drama
Status: Canon, confirmed in source (major characters). There's gay implications and fanservice throughout between many characters, but the canon two are Momo and Yuki (M/M), who do a "couple act" on stage. The anime canonizes their relationship in more subtle ways, while the source material is generally consistent and explicit about it.
Gundam: The Witch From Mercury
Genre: Action, mecha
Status: Canon (main characters). Main characters Suletta and Miorine (F/F) are in an arranged marriage, fall in love and state their love to each other, and eventually get married.
Promare
Genre: Action, mecha
Status: Heavily implied (main characters). Main character Galo has to press his mouth to his rival Lio's to save his life, which is not inherently romantic but is framed like a kiss (M/M). Afterwards, when they get into the robot they pilot together and start fighting, fire explodes around them in the shape of a heart, and the lyrics of the movie soundtrack have romantic connotations.
No. 6
Genre: Sci fi, dystopia
Status: Canon (main characters). The two main characters have a developing relationship over the series that ends in a kiss (M/M). Additionally, main character Nezumi/Rat crossdresses to perform in plays.
Let's Go Karaoke
Genre: Comedy, drama
Status: Heavily implied, confirmed in source (main character). The series focuses on the off-beat platonic relationship between a schoolboy, Satomi, and a yakuza, Kyouji. Satomi develops a crush on Kyouji (M->M), shown by blushing and body language and explicitly stated in the non-animated continuation, making him gay or bisexual.
Monthly Girls' Nozaki-kun
Genre: Comedy, heterosexual romance
Status: Canon (main character). Main cast member Kashima is a gender-non-conforming "prince" who flirts with women consistently (F/F) though is also interested in men. Additionally, main character Sakura is shown to be attracted to Kashima as well as Nozaki (her male love interest) and the anime and manga includes a lot of LGBTQ jokes and references handled quite tastefully.
Gintama
Genre: Comedy, action
Status: Canon (side characters), played for laughs (main character, others). The character Kyuubei is sometimes treated as a girl, but more frequently treated as nonbinary, which is how they identify. Additionally, they are openly attracted to their childhood friend, Otae (NB->F). The story also features several drag queens, and the main character, Gintoki, canonically has sex with his friend Hasegawa when drunk (M/M).
The Rose of Versailles
Genre: Historical, melodrama
Status: Canon (major character). Major character Rosalie falls in love with main character Oscar, who rejects her (F->F). Additionally, Oscar consistently crossdresses and breaks gender norms, (plus is in love with a person she can't be with because of societal norms), making the story resonate with LGBTQ themes despite her implied heterosexuality.
Alien Stage
Genre: Idols, sci-fi
Status: Canon (main characters). This is at the end of the list because it's not technically anime. However, it's an Asian animated property in which there are both gay and lesbian relationships, both of which are deeply interesting, between protagonists, and include on-screen kissing.
【Utena edited in after posting because I forgot, Rose of Versailles added because I reconsidered. Tokyo Godfathers excluded because I feel everyone knows about it. Other shows excluded because they're just implied (I really wanted to put in Inu-oh for queer themes, but it's not explicit about anything), I haven't seen them (I wanted to add Berserk for heavily implied, but I've only read the manga and don't know what the anime has), or the rep is mid-tier (minor or stereotypical/harmful).】