Deploying from Git

I like to use git for my plugins, and deploying them to WordPress.org’s svn from git . I’m using scribu’s scripts and I did small modifications on it  – https://github.com/mustafauysal/deploy-from-git

1) Directory Structure

I’m using my-plugins directory on Desktop and it looks like

my-plugins

2) Symlink to project

When I need to work on my plugins, just symlink to current WordPress’ plugins directory.

3) Deploy like a Boss

After works done, just run “plugin-deploy” command. I’ve added “plugin-deploy” as alias, you can add them to export path as well.


alias plugin-deploy='sh /Users/mustafauysal/scripts/plugin-deploy.sh'

alias plugin-tag='sh /Users/mustafauysal/scripts/plugin-tag.sh'

Tips:

1) Use WP-CLI to generate plugins
You can use wp scaffold plugin foo-bar to generate “foo-bar” plugin, these scripts will respect .distignore file (Your plugins will be clean on WordPress.org)

2) Don’t tag plugins which contains too many objects
Yeah, I did that mistake for my https://github.com/mustafauysal/compressed-emoji plugin and..

Interrupted 2-3 times. Yikes!

Interrupted 2-3 times. Yikes!

Cheers,

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s