-
Notifications
You must be signed in to change notification settings - Fork 50
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
Document/automate using GAS REST import-export in git workflow? #75
Comments
This could be really useful, but I would postpone it giving precedence to the work on the development branch which I think is almost ready for a new release. |
A much better and easier solution seems to have presented itself. In January the clasp tool was released. A key part of the description is this:
I think this will ultimately allow users to just:
I haven't checked but I guess the clasp tool must handle running a function on the uploaded script (like |
...answering my own question here: also in January the Apps Script API was made available, allowing programmatic control of everything (deploying, remote function triggering, etc). :-) |
This is really nice: I'll try playing with it this afternoon |
I tried clasp and as far as I can tell it's exactly what we were looking for relative to the automatic deployment on Google Scripts to test a new version of GCEN. Having clasp installed on our local machines it should be easy to write a simple script to edit the configuration of the script and push it to our personal test environment. I tried to jot down some ideas for a test-deployment workflow and came up with this: Setup:
Test-deployment workflow:
|
According to the Google documentation it is possible to sync latest commits to the scripts on Google Drive via the REST interface, so it would be nice to document that (at least for maintainer/collaborators-use) so we can avoid the whole copy-paste-update-vars tango whenever we want to test things, and users who want to do it that way can avoid the same tango whenever they want to sync an updated version from master. What would be even nicer would be to add a git-hook (which the user must copy into place if they want that, so other users don't get scared by automatic-background activity happening when they pull from github) with the following logic:
or for that matter the hook could be a nodejs script like what they show at the nodejs google drive api quickstart - but that would require having nodejs installed (maybe it would be better for the hook to be in a more commonly-installed language like perl or python... of course using curl-invocations in a shell is probably the least dependency-heavy - for non-windows people anyway)
The text was updated successfully, but these errors were encountered: