<div dir="ltr">Dear List,<div><br></div><div>Using QGIS 2.18, I'm trying to find a way to deploy plugins directly from github using the following procedure :</div><div><br></div><div>1. Add a plugin.xml file to my repo, with this content :</div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"></blockquote><span style="background-color:rgb(204,204,204);font-family:monospace,monospace"><?xml version = '1.0' encoding = 'UTF-8'?></span><br><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left:1px solid rgb(204,204,204);border-right:1px solid rgb(204,204,204);padding-left:1ex;padding-right:1ex"></blockquote><span style="background-color:rgb(204,204,204);font-family:monospace,monospace"><plugins></span></div><div><span style="background-color:rgb(204,204,204);font-family:monospace,monospace">    <pyqgis_plugin name="MyPlugin" version="0.0.13"></span><br><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left:1px solid rgb(204,204,204);border-right:1px solid rgb(204,204,204);padding-left:1ex;padding-right:1ex"></blockquote><span style="background-color:rgb(204,204,204);font-family:monospace,monospace">        <version>0.0.13</version></span><br><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left:1px solid rgb(204,204,204);border-right:1px solid rgb(204,204,204);padding-left:1ex;padding-right:1ex"></blockquote><span style="background-color:rgb(204,204,204);font-family:monospace,monospace">        <author_name>Olivier Dalang</author_name></span><br><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left:1px solid rgb(204,204,204);border-right:1px solid rgb(204,204,204);padding-left:1ex;padding-right:1ex"></blockquote><span style="background-color:rgb(204,204,204);font-family:monospace,monospace">        <download_url><a href="https://github.com/{username}/MyPlugin/archive/0.0.13.zip">https://github.com/{username}/MyPlugin/archive/0.0.13.zip</a></download_url></span><br><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left:1px solid rgb(204,204,204);border-right:1px solid rgb(204,204,204);padding-left:1ex;padding-right:1ex"></blockquote><span style="background-color:rgb(204,204,204);font-family:monospace,monospace">        <file_name>MyPlugin-0.0.13.zip</file_name></span><br><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left:1px solid rgb(204,204,204);border-right:1px solid rgb(204,204,204);padding-left:1ex;padding-right:1ex"></blockquote><span style="background-color:rgb(204,204,204);font-family:monospace,monospace">    </pyqgis_plugin></span><br><font face="monospace, monospace" style="background-color:rgb(204,204,204)"></plugins></font><div><br></div><div>2. Add the xml repo in QGIS plugin manager </div><div><font face="monospace, monospace" style="background-color:rgb(204,204,204)"><a href="https://raw.githubusercontent.com/{username}/MyPlugin/master/repository.xml">https://raw.githubusercontent.com/{username}/MyPlugin/master/repository.xml</a></font><br></div><div><br></div></div><div><div><div>3. Create and push a tag named <span style="background-color:rgb(204,204,204)"><font face="monospace, monospace">0.0.13</font></span></div><div><br></div></div></div><div>If this worked, it would be a big win, as it would allow to deploy plugins updates really easily, just by creating tags and updating the xml file whenever I want my users to update the plugin. It avoids having to create the zip, host it somewhere else, and maintain an up to date xml separately for each update.</div><div><br></div><div>The only thing is that it doesn't work. I get an error on installing the plugin : "Plugin installation failed. Failed to unzip package".</div><div><br></div><div>Github appends the tag name (or branch name) to the downloaded folder (inside the zip). When unpacking the zip, I get a folder called <span style="background-color:rgb(204,204,204)"><font face="monospace, monospace">MyPlugin-0.0.13</font></span> instead of just <font face="monospace, monospace" style="background-color:rgb(204,204,204)">MyPlugin</font>. I suspect this causes the problem.</div><div>I tried to workaround this problem by using the master branch, and renaming my plugin to MyPlugin-master, but I still get the same error. Maybe it is so that dashes are not supported at all in plugin names ?</div><div><br></div><div>Was anyone able to setup such a workflow ?</div><div><br></div><div>Kind regards,</div><div><br></div><div>Olivier</div></div>