node-google-apps-script icon indicating copy to clipboard operation
node-google-apps-script copied to clipboard

Is there a way to automate `Publish>Deploy as API executable...`

Open lastobelus opened this issue 9 years ago • 12 comments

Currently when working on REST script execution targets, after running gulp upload-latest --env dev I have to go to the script project in a browser and run Publish>Deploy as API executable..., and name the version.

Is there any way to automate this as part of pushing the code up?

lastobelus avatar Feb 14 '16 00:02 lastobelus

Is there an API for this?

oshliaer avatar Feb 14 '16 08:02 oshliaer

There was but it was deprecated. There is no API for this currently.

peterherrmann avatar Feb 15 '16 21:02 peterherrmann

Actually, that deprecated method doesn't relate to the API Executable.

Currently, there are no APIs for any of the functions that you need to perform in the script editor, such as publishing (web apps, add-ons, API executables).

hess-g avatar Mar 07 '16 18:03 hess-g

You're correct of course. My comment referenced Publish>Deploy as web app... and the OP asked about Publish>Deploy as API executable....

peterherrmann avatar Mar 08 '16 00:03 peterherrmann

Is this still true? Constantly having to navigate the Publish>Deploy as API executable... interface really makes working on google app scripts a drag.

lastobelus avatar Aug 31 '16 18:08 lastobelus

Related issue in Google Code: API to deploy google apps script as WebApp. But no answer from Google yet.

gunar avatar Oct 24 '16 16:10 gunar

Don't actually know if this is helpful for your use case but I have devMode: true set and it allows the remote execution API to run the latest version of the script without republishing. It only does this for the developer, not users so is only good for testing.

script.scripts.run({
        auth: auth,
        resource: {
            function: 'someFunction',
            devMode: true
        },

shabegom avatar Oct 25 '16 15:10 shabegom

Hi !

@lastobelus @oshliaer @peterherrmann @hess-g @gunar @sbgood

I have a google sheet containing script, I want to execute this script programmatically for any user (public). Can I perform "Publish>Deploy as API executable" programmatically?

asadmkhan avatar Oct 27 '17 13:10 asadmkhan

Hi @asadmkhan

It's not possible.

oshliaer avatar Oct 27 '17 15:10 oshliaer

HI. Any updates on this? I've followed the links but it seems everything is still on the same page

lricoy avatar Nov 29 '17 10:11 lricoy

Closing as it looks idle. Please reopen if interested again.

lricoy avatar Jan 07 '18 16:01 lricoy

@lricoy yes, we are all very much interested still!

gunar avatar Jan 08 '18 07:01 gunar