Is there any plan to provide Google Apps script capability for the \"Files | Publish to the web...\" menu item in a google Document?
This has been asked before, but
It is not possible directly with GAS. However, using the Document List API and URLFetch with oAuth, you can, in theory make a document public on the web. Publish to the web option, per se, isn't available though.
Please see the following links for information and help
How do I get an access token using UrlFetchApp with GAS
https://developers.google.com/google-apps/documents-list/#sharing_resources_with_the_public_the_rest_of_the_internet