Deploy a plugin managed in Git to the wordpress.org plugin repository.
Shell
Switch branches/tags
Nothing to show
Latest commit b9bb720 Aug 15, 2014 @pdclark Merge pull request #4 from BFTrick/patch-1
Comment SVN username as case-sensitive. Props @BFTrick
Permalink
Failed to load latest commit information.
deploy.sh updating svn username comment Jul 28, 2014
readme.md Fix multi-line code in readme.md Jan 18, 2013

readme.md

Configuration

Edit these lines:

# User config
PLUGINSLUG="example-plugin"   # Slug on wordpress.org (from the plugin URL)
MAINFILE="example-plugin.php" # Name of main php file in the WordPress plugin
SVNUSER="username"            # SVN username on wordpress.org

Usage

  • Place deploy.sh at the top of your plugin's Git directory.
  • Make it executable with chmod 755 deploy.sh.
  • Run ./deploy.sh to deploy master to wordpress.org.

Ignoring Files

If you have files in your Git repository that you would not like to commit to the WordPress repo, find and edit these lines:

# Add any large source files or other things to ignore here
echo "Ignoring github specific files and deployment script"
svn propset svn:ignore "deploy.sh
README.md
.git
.gitignore" "$SVNPATH/trunk/"

History

Original version: Dean Clatworthy's deploy script.

Forked by thenbrent, which removed the requirement for a local SVN repo.

Forked by pdclark to allow trunk as stable tag, move config to one place, and share with others.