google-github-actions / deploy-cloud-functions

A GitHub Action that deploys source code to Google Cloud Functions.

Home Page:https://cloud.google.com/functions

Repository from Github https://github.comgoogle-github-actions/deploy-cloud-functionsRepository from Github https://github.comgoogle-github-actions/deploy-cloud-functions

Is it possible to deploy an onRun cloud function with this action?

trigonometric-act opened this issue · comments

Documentation is not very clear on how to deploy a function like in ts:

export const whatevername= functions.region('europe-west1').pubsub.schedule('0 1 * * *').timeZone('Europe/Madrid').onRun(async () => {
// code
})

Is it possible to do it with this action?

Any explanation would be much apreciated, thanks!

Hi @trigonometric-act - this function uses the Cloud Functions API to deploy functions. So if the Cloud Functions v1 API supports deploying those functions, then it will work.