How can I update a wordpress plugin from a Git repository (github)

is there any way to easily update a plugin installed on multiple sites from a github repo. I know I can do it from the command line of each server using git pull. but is there a way to do it from the wordpress admin similar to how plugins are updated?

Related posts

Leave a Reply

6 comments

  1. Since you mentioned in your comment that you are looking for an easy way and you’d rather not have to code it yourself I guess it is safe to recommend WP Package Editor (WP2E) a SaaS providing a way to deploy and manage a set of interdependent Themes & Plugins from a single dashboard.

    Among other things the service uses a registered GitHub App to pull the latest version from public / private GitHub repositories.

    The part of the documentation regarding GitHub implementation lists 4 conditions for a script to be successfully imported to the library of repositories and later be synchronized as an installer dependency:

    1. The GitHub App must be connected to a WP2E account
    2. The “read-only” access to the repository must be granted to the WP2E GitHub App
    3. The script must be a valid WP theme or plugin
    4. The repository must have at least one “release” on GitHub

    You can also find more details about the registered app by visiting the Github Marketplace and look for the app of the same name:

    On a side note, the GitHub App must be integrated via the WP2E panel in order to
    synchronize with your account. If you setup the app directly via the
    GitHub Marketplace the service wont be able to reach it.