-
Notifications
You must be signed in to change notification settings - Fork 422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clasp deploy does not publish a new version of a Google Docs add-on #43
Comments
Follow up question: how do I change the current deployment that an add-on uses? Would I need to use the redeploy command to indicate which deployment should be used? From the Apps Script Clasp Guide:
|
While having this feature normalized would be great, it seems that for now it will not be possible with this API, mainly because Doc Add-on are deployed on the Chrome Webstore. Hence you have to use the Chrome webstore API to deploy your Add-ons. If you still want to go this way, you can use this project that allow local development and deploying your script via command line: https://github.com/JeanRemiDelteil/gas-shell. |
Thanks for the reply @JeanRemiDelteil. If the deploy command doesn't deploy a google docs add-on, what is the purpose of |
The deploy command is there to deploy a 'deployment', which can currently be used for webApp, execution API, or Gmail Addon. You can find the documentation on deployment here: For now, the deployment of Doc Add-on is not using the same logic. Honestly I would love to be able to use a simple 'deploy' command in CLASP to update our Add-ons ! |
@ryanolsonx The process of publishing an add-on is described here: https://developers.google.com/apps-script/add-ons/publish Interacting with the Chrome Web Store sounds like a good idea for a different CLI as it seems like a big set of commands with various options. It would be great if we could describe how to tie these two processes together. Looks like there's already progress with an API/CLI: API: https://developer.chrome.com/webstore/using_webstore_api Please comment if you try that CLI out and find success. |
I don't plan to integrate the Chrome Webstore API in Thanks for the issue though. Feel free to still comment here if you think differently. |
I might be misunderstanding the term "deployment" in the context of this CLI. I expect that when I deploy a new version of my add-on, it would publish a new version of the add-on.
Expected Behavior
That
clasp deploy {version}
would publish a new version of my Google docs add-on.Actual Behavior
After running the above command and test out the published add-on, I don't see the changes in the version used above.
Steps to Reproduce the Problem
clasp push
to get your changes into your Google scriptclasp version
andclasp deploy {version}
to deploy your changesSpecifications
node -v
): v8.9.4npm list | grep clasp
): 1.1.1The text was updated successfully, but these errors were encountered: