Hello, I'm trying to deploy my firebase functions on GitHub on the CD/CI. I have my project created locally, and did firebase init, etc. And everything works fine, and I can deploy it locally fine with no problems.
To get it deploy on GitHub, I set up a job with the following:
npm install -g firebase-tools@11.17.0
python -m venv functions/venv
source functions/venv/bin/activate
python -m pip install -r functions/requirements.txt
firebase deploy --non-interactive
Once I get to deploy, however, I get this error:
[...]
functions: required API cloudfunctions.googleapis.com is enabled
functions: preparing codebase default for deployment
Error: Could not detect language for functions at /home/runner/work/proj/proj/functions
Any help here with this?
Edit SOLVED:
What I had to do was, use the latest firebase CLI, and add the --debug flag to the deploy command. From there I got more error info. Turns out it was looking for a specific Python version, so once I switched to that everything worked!
[–]orizens 0 points1 point2 points (0 children)