I am new to GCP however did some read up of docs regarding deploying from google cloud repo https://cloud.google.com/functions/docs/deploying/repo
however I stil miss some automation bit
to don't have call by myself the gcloud functions deploy locally rather delegate it to google cloud repo (smth similar to gitlab-ci does) to handle it after new changes pushed to certain branch.
The most desired scenario having something like .gitlab-ci yaml in my cloud functions repo which takes care of setup the cloud functions and linking it to certain dirs in repo.
As mentioned in the Documentation :
You can also refer to the Article and blog for a brief description of the CI\CD for GCP Serverless Cloud Functions. You can also refer to the Thread which explains the brief aspect of CI/CD Pipeline for cloud functions and how it works to resolve issue of re deployment as: