• Stars
    star
    201
  • Rank 194,491 (Top 4 %)
  • Language
    Shell
  • License
    GNU General Publi...
  • Created almost 9 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Bash script to handle tagging on Github and deployment to WordPress SVN

Github to WordPress.org Deployment Script

We all know releasing plugins can be quite a chore, and deep down we all loathe SVN so here is a neat little script for automating the process as much as possible.

What this script does

This script will pull down your remote GIT and SVN repositories, tag a release using the branch you specify, and commit everything to WordPress.org.

To use it you must:

  1. Host your code on GITHUB
  2. Obtain a personal access token (keep this private!)
  3. Already have a WordPress.org SVN repository setup for your plugin.
  4. Have both GIT and SVN setup on your machine and available from the command line.

Getting started

  1. Download the script release.sh from this repository and place it in a location of your choosing.
  2. Edit the script and set the GITHUB_ACCESS_TOKEN
  3. Set the PLUGIN_SLUG to match the slug of your WordPress.org plugin
  4. Set the GITHUB_REPO_OWNER to the owner of the repository you wish to deploy. Usually your username.
  5. Set the GITHUB_REPO_NAME to the name of your GITHUB repo.
  6. Save the script.

The script is ready to run.

Usage

  1. Open up terminal and cd to the directory containing the script.
  2. Run: sh release.sh
  3. Follow the prompts.

Demo

Here is a screencast of the process you'll typically see when running the script.

Demo

Final notes

  • This will checkout the remote version of your Github Repo.
  • Committing to WordPress.org can take a while so be patient.
  • I have tested this on Mac only.
  • Use at your own risk of course :)

More Repositories

1

sidebar-login

Easily add an ajax-enhanced login widget to your WordPress site sidebar.
PHP
57
star
2

woocommerce-product-gift-wrap

Enable a per-product, store wide Gift wrap option - let the user choose design and make it free or paid.
PHP
50
star
3

wp-post-series

Publish and link together a series of posts using a new "series" taxonomy. Automatically display links to other posts in a series above your content.
PHP
44
star
4

WP-Page-Load-Stats

A simple stats plugin for WordPress showing load time, memory usage and queries. http://wordpress.org/extend/plugins/wp-page-load-stats/
PHP
32
star
5

wp-plugin-licencing

Use https://github.com/license-wp/license-wp :)
PHP
21
star
6

morrics-magical-cauldron

JavaScript
13
star
7

woocommerce-eu-vat-rates-for-digital-goods-sync

Syncs 2 Tax Classes in WooCommerce (named Digital Goods and eBooks) with https://github.com/mikejolley/EU-VAT-Rates-for-Digital-Goods monthly using a cron job.
PHP
5
star
8

EU-VAT-Rates-for-Digital-Goods

A simple way to grab VAT rates for Digital Goods for all EU Member States in JSON format. Ideal for syncing with WooCommerce ;)
5
star
9

wp-job-manager-jobroller-import

A small plugin for converting Jobroller jobs to WP Job Manager jobs. Backup first, this cannot be reversed. Go to Tools > Import after installing to run it.
PHP
4
star
10

WC-Issue-Decision-Matrix

PHP
4
star
11

wc-custom-table-data-stores

Experiment.
PHP
3
star
12

retro-game-ratings

Micro-site listing reviews from a JSON file.
JavaScript
2
star
13

disable-transients

Bypasses all WP transient setting. Do not use unless you understand what you're doing!
PHP
2
star