Git Product home page Git Product logo

github-to-wordpress-deploy-script's Introduction

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 :)

github-to-wordpress-deploy-script's People

Contributors

mikejolley avatar aaronholbrook avatar damiencarbery avatar justinsainton avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.