Skip to content

Deploys a WordPress plugin from Github (git) to the WordPress Plugin Repostiory (svn), taking account of git-flow usage.

Notifications You must be signed in to change notification settings

greenweb/wordpress-plugin-git-flow-svn-deploy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

Github to WordPress Plugin Directory Deployment Script, Git-Flow Version

Deploys a WordPress plugin from Github (git) to the WordPress Plugin Repostiory (svn), taking account of standard git-flow usage.

Credits

Well over 90% of this script was written by others:

Process

  1. Prompts for plugin slug and other data.
  • Verifies plugin header version number matches readme stable version number.
  • Pushes latest git commit and tags to GitHub.
  • Creates temporary checkout of SVN repo.
  • Ignores non-WordPress repo files from SVN.
  • Copies git export to SVN trunk.
  • Checks out any submodules.
  • Copies contents of assets directory in trunk to a directory parallel to trunk.
  • Commits SVN trunk, assets and tag.
  • Attempts to remove temporary SVN checkout.

Usage

With git-flow, specifically the git flow release finish ... command, the release branch is merged into the develop branch, the master branch and a tag is created, so these aren't needed with this deploy script.

I prefer to keep this script in the root of my projects directory. Each project directory is named as the plugin slug, as is the corresponding GitHub repo. To use, just call the script, enter the plugin slug, confirm or amend default suggestions, and sit back as the code is sent to SVN and git repos including tags. The commit messages here are hard-coded for consistency.

About

Deploys a WordPress plugin from Github (git) to the WordPress Plugin Repostiory (svn), taking account of git-flow usage.

Resources

Stars

Watchers

Forks

Packages

No packages published