Publish plugins
to WordPress.org without SVN
Arūnas Liuiza
Git / GitHub
SVN
- SVN - 2000
- WordPress - 2003
- Git - 2005
GitHub
- Development
- Feedback
- Issue tracking
- Etc.
WP.org
- Publishing
SVN
GitHub
- Development
- Feedback
- Issue tracking
- Etc.
WP.org
- Publishing
Service
Ship
- Automated setup;
- Requires API access to all GitHub repositories;
- Requires
WordPress.org credentials; - Stores them in plaintext;
- No longer supported;
- ship.getherbert.com
Deployer
- Needs manual setup;
- Uses a dedicated WP.org account or commits;
- Does not require any of your GitHub or WP.org credentials.
- Built by me and sponsored by Seravo
- deployer.seravo.com
Deployer Setup
- Registration
- GitHub WebHook
- WordPress.org commiter
Registration
- Register at Deployer site:
- your email address;
- WP.org plugin slug / address;
- System sends you an email with further instructions;
GitHub
Add a new webhook in the repository
- Settings > Webhooks and Services > Add Webhook.
- Enter Payload URL ir Secret parameters provided by Deployer.
- Click Add Webhook.
WordPress.org
- Login to WP.org;
- Go to your plugin page;
-
Click on the Advanced view button.
-
Under Commiters section add user deployer as a new committer.
Usage
Continue your usual work on GitHub. Deployer will now automatically do the following things on WordPress.org:
- Publish a new version;
- Update readme.txt;
- Update plugin assets (icon, banner);
Publishing a version
Just update your readme.txt and tag a new version via git. Deployer will do the rest.
git add readme.txt
git add plugin-file.php
git commit -m "version 1.0.1"
git tag 1.0.1
git push origin master --tags
Updating readme.txt
Any changes to readme.txt in master branch will be automatically transferred to WP.org
git add readme.txt
git commit -m "updating readme.txt"
git push origin master
Updating plugin assets
If you have an assets branch in your GitHub repo, any updates to it will be synced to assets directory on WP.org
git checkout assets
git add -A
git commit -m "new banner and icon"
git push origin assets
Questions?
Publish plugins to WordPress.org without SVN
By Arūnas Liuiza
Publish plugins to WordPress.org without SVN
- 1,481