danthareja / node-google-apps-script

[DEPRECATED - use clasp instead] The easiest way to develop Google Apps Script projects
MIT License
353 stars 70 forks source link

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

Open lastobelus opened 8 years ago

lastobelus commented 8 years ago

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?

oshliaer commented 8 years ago

Is there an API for this?

peterherrmann commented 8 years ago

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

hess-g commented 8 years ago

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).

peterherrmann commented 8 years ago

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

lastobelus commented 8 years ago

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

gunar commented 7 years ago

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

shabegom commented 7 years ago

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
        },
asadmkhan commented 6 years ago

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?

oshliaer commented 6 years ago

Hi @asadmkhan

It's not possible.

lricoy commented 6 years ago

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

lricoy commented 6 years ago

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

gunar commented 6 years ago

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