Updating wordpress plugin subversion

Our WordPress plugin Stop Web Crawlers is available for download from WordPress.org plugin.  We are currently learning and refining everything our approach to listing our products on this amazing directory.

We’re having to integrate a number of our own internal tools and processes to adapt to include the WordPress.org tools.  We have previously posted about integrating Git, GitHub and subversion into the plug-in software development lifecycle.

We have also had to become familiar with the finer workings of subversion, due our version control system of choice internally is Git. However, we need to understand how to create branches and tags in subversion in order to create updates for plug-ins.

This post just discusses the steps required to update a plug-in using the terminal based subversion client.  You will need to ensure you have installed subversion on your mac using the homebrew package manager

 

Clone your subversion repository

Now change into the trunk directory

Our main development branch will always be within GitHub, and developers will largely follow the process as defined Git, GitHub and Subversion workflow. However, once it comes to managing the releases we still at this stage prefer to do the tagging and updating within subversion.

So the first part of the process of creating a release is to first update the readme.txt with the updated version number.

And then we update the version number in main plugin PHP file i.e. stop-web-crawlers.php

Once we are confident that the plugins passes all tests and Quality is assured, we create a new tag version and copy the contents of trunk into the tag.

We then commit this new version to subversion

We then wait approximately 15 minutes and the new version will be available for download from the WordPress.org directory and all exisiting users will be notified that they need to update the plugin.

Gary Woodfine

Founder & CTO of threenine.co.uk. Experienced full stack software developer well versed in delivering web & mobile applications utilizing cloud architectures. Areas of speciality include cross platform development in .net , PHP, JavaScript.

π
%d bloggers like this: