Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
Dockerfile
LICENSE
README.md
entrypoint.sh

README.md

Licence PRs

WordPress

Github action to publish your WordPress plugin to wordpress.org plugin repository. Develop plugin on github and once done tag the release, sit back and relax. WordPress action will publish the release to wordpress.org SVN and create SVN tag based on the github release tag.

Note:

  • WordPress action depends on archive action to build the distibution archive which is published to wordpress.org SVN
  • Keep all assets for plugin repository under .wordpress-org
  • Create numeric release tag e.g. 1.0.0 as action uses same name for SVN tag folder

Environment Variables

  • WP_SLUG: plugin slug on wordpress.org

Secrets

  • WP_USERNAME: your wordpress.org username
  • WP_PASSWORD: your wordpress.org password

Example Workflow

    # Workflow to publish plugin release to wordpress.org
    workflow "Release Plugin" {
        on = "push"
        resolves = ["wordpress"]
    }

    # Filter for tag
    action "tag" {
        uses = "actions/bin/filter@master"
        args = "tag"
    }

    # Install Dependencies
    action "install" {
        uses = "actions/npm@e7aaefe"
        needs = "tag"
        args = "install"
    }

    # Build Plugin
    action "build" {
        uses = "actions/npm@e7aaefe"
        needs = ["install"]
        args = "run build"
    }

    # Create Release ZIP archive
    action "archive" {
        uses = "lubusIN/actions/archive@master"
        needs = ["build"]
        env = {
                ZIP_FILENAME = "plugin-slug"
            }
    }

    # Publish to wordpress.org repository
    action "wordpress" {
        uses = "lubusIN/actions/wordpress@master"
        needs = ["archive"]
        env = {
            WP_SLUG = "plugin-slug"
        }
        secrets = [
            "WP_USERNAME", 
            "WP_PASSWORD"
        ]
    }

Feedback / Suggestions

If you have any suggestions/feature request that you would like to see, feel free to let us know in the issues section

Credits

Ajit Bohra

Support Us

Become A Patron

LUBUS is a web design agency based in Mumbai, India.

You can pledge on patreon to support the development & maintenance of various opensource stuff we are building.

License

wordpress action is open-sourced software licensed under the MIT