API to upload (or download) a Theme

8 Comments

  • Nicole - Community Manager

    Thanks for that feedback, Dru!

    0
  • Evan

    This would make my month! With ZAT, and some local dev tools, we have a very lovely development cycle going for our theming efforts. Except for the painful download/upload steps. It would be great to have some method to pull and push template updates, and make things bulletproof.

    0
  • Jan Jachacz

    Just joined the Zendesk ecosystem. The ZAT is pretty straightforward, but not having the ability to upload/download theme build via and an automated task is a real bummer. And when I re-upload the same zipped package, it duplicates it?! There must be a better way.. Am I missing something?!

    1
  • Dru Kepple

    Jan, technically it's not a duplicate theme, as presumably you've made changes. The problem is that the theme's name is the same, so you have no way of differentiating the two (or more) in your theme workbench.

    I've incorporated a "bump" task into my build, so that everytime a deploy a zip, it bumps the manifest.json's version and also appends that new version to the name. Now when I upload that zip I see "My Theme 1.0.0" and "My Theme 1.0.1" or what-have-you.  I can more easily set 1.0.1 as the live theme, and quickly rollback to 1.0.0 if things get hairy.

    To do this manually, just open manifest.json and update the name property.  You can update the version property as well, but I can't discern anything that actually happens from changing the version.

    1
  • Jan Jachacz

    Thanks for your reply Dru,

    I'll go with your bump task approach and sync tag on my repo. 

    0
  • Gorka Cardona-Lauridsen

    Though it's not all you are looking for we are currently running a GitHub integration EAP that may be of interest. You can read more here.

    0
  • Dru Kepple

    Yes, I saw that announcement, and it's great news. Unfortunately we use GitLab so I didn't look at it too hard.

    0
  • Liam O'Boyle

    GitHub integration is great and all, but I'd rather have this as part of my build pipeline so I don't really want to manually be pulling updates from GH.

    What would be more useful than the GH integration is

    * uploading an updated version of the same theme should update it, not import as a new theme (or at least you should ask what they want to do; the manifest identifies the theme already)
    * there should be an API to publish an updated .zip

    0

Please sign in to leave a comment.

Powered by Zendesk