how to create an environment variable in github pages

I have an open ai api key and I need to use that api key but I don’t want to show it in the frontend, how can I do to save my environment variables in github pages?

I need my environment variable not to be shown in the frontend.