snip
It is possible to upload executables (.exe) to GitHub (closed source) if they are 100% your own work. Encrypting the private key (pk) also infringes the license because, in a way, you are indirectly profiting from it. In short, if all the code were yours, you could do it without any problem. However, if you include third-party code or libraries, check their licenses to understand what you can and cannot do.