SAN FRANCISCO — Ellen Pao has announced she will drop her appeal against venture-capital firm Kleiner Perkins Caufield & Byers, saying she can’t afford to continue the fight.

Pao’s decision ends a courtroom drama that captivated Silicon Valley and spurred debate about workplace discrimination in the tech sector.