Code Monkey home page Code Monkey logo

wordpress-plugin-git-flow-svn-deploy's Introduction

Github to WordPress Plugin Directory Deployment Script, Git-Flow Version

Deploys a WordPress plugin from Github (git) to the WordPress Plugin Repostiory (svn), taking account of standard git-flow usage.

Credits

Well over 90% of this script was written by others:

Process

  1. Prompts for plugin slug and other data.
  • Verifies plugin header version number matches readme stable version number.
  • Pushes latest git commit and tags to GitHub.
  • Creates temporary checkout of SVN repo.
  • Ignores non-WordPress repo files from SVN.
  • Copies git export to SVN trunk.
  • Checks out any submodules.
  • Copies contents of assets directory in trunk to a directory parallel to trunk.
  • Commits SVN trunk, assets and tag.
  • Attempts to remove temporary SVN checkout.

Usage

With git-flow, specifically the git flow release finish ... command, the release branch is merged into the develop branch, the master branch and a tag is created, so these aren't needed with this deploy script.

I prefer to keep this script in the root of my projects directory. Each project directory is named as the plugin slug, as is the corresponding GitHub repo. To use, just call the script, enter the plugin slug, confirm or amend default suggestions, and sit back as the code is sent to SVN and git repos including tags. The commit messages here are hard-coded for consistency.

wordpress-plugin-git-flow-svn-deploy's People

Contributors

afragen avatar garyjones avatar ruhanirabin avatar

Watchers

 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.