Publishing APP

Hello it is my 1st time using GitHub, I wanted to publish a app there that is only a python file. However it has also a .env file with a api key. I don’t know how can I publish it. I’m also having some errors when running the app from not intalling libraries like OpenAI but I don’t know where can I install them can someone help me?