Skip to content
Branch: master
Find file History
Pull request Compare This branch is 2 commits behind develop.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
Dockerfile Consolidate RUN statement into one for more efficient Dockering Feb 11, 2019
README.md
entrypoint.sh Change from `assets/dotorg` to `.wordpress-org` Mar 12, 2019

README.md

WordPress.org Plugin Deploy

This Action commits the contents of your Git tag to the WordPress.org plugin repository using the same tag name. It excludes files in .git and .github subdirectories and moves anything from a .wordpress-org subdirectory to the top-level assets directory in Subversion (plugin banners, icons, and screenshots).

Configuration

Required secrets

  • SVN_USERNAME
  • SVN_PASSWORD

Secrets can be set while editing your workflow or in the repository settings. They cannot be viewed once stored. GitHub secrets documentation

Optional environment variables

  • SLUG - defaults to the respository name, customizable in case your WordPress repository has a different slug
  • VERSION - defaults to the tag name; do not recommend setting this except for testing purposes
  • ASSETS_DIR - defaults to .wordpress-org, customizable for other locations of WordPress.org plugin repository-specific assets that belong in the top-level assets directory (the one on the same level as trunk)

Example Workflow File

workflow "Deploy" {
  resolves = ["WordPress Plugin Deploy"]
  on = "push"
}

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

action "WordPress Plugin Deploy" {
  needs = ["tag"]
  uses = "10up/actions-wordpress/dotorg-plugin-deploy@master"
  secrets = ["SVN_PASSWORD", "SVN_USERNAME"]
  env = {
    SLUG = "my-super-cool-plugin"
  }
}

Contributing

Want to help? Check out our contributing guidelines to get started.

License

Our GitHub Actions are available for use and remix under the MIT license.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.