question

ariellarias avatar image
ariellarias asked

Auto Deploy Cloudscript after Push on Github

Hi,

I'm wondering if there is anyway of automate the deployment of last Github Cloudscript push. I understand the reasons for what the deploy is manual, but it would be nice to have an option of autodeploy for development stage. Each time I commit/push a change, I need to go and reload the cloudscript page, then select last version, then deploy, before testing the changes, which is anti-productive for development.

There is anyway to do this in an automated way?

Thanks

CloudScript
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

Not when using GitHub, but if you were to manage your updated to Cloud Script via the Admin API call UpdateCloudScript, you could set Publish to true in the call to update with the new script. Alternately, you could call SetPublishedRevision after the GitHub update (via Postman, for example), or have a script that reads the latest revision (GetCloudScriptRevision) and set it.

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

ariellarias avatar image ariellarias commented ·

Thanks Brendan, it was really useful.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.