I've faced the same problem. Locally, with Azure Functions Core Tools I could upload the functions without any problem. But deploying with Github Actions just won't work. I didn't solve it to that time. But here is a similar issue on Github, worth a look: https://github.com/Azure/functions-action/issues/192#issuecomment-1782920933
Let me know if this works for you!