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).
SVN_USERNAMESVN_PASSWORDGITHUB_TOKEN- you do not need to generate one but you do have to explicitly make it available to the Action
Secrets can be set while editing your workflow or in the repository settings. They cannot be viewed once stored. GitHub secrets documentation
SLUG- defaults to the respository name, customizable in case your WordPress repository has a different slug. This should be a very rare case as WordPress assumes that the directory and initial plugin file have the same slug.VERSION- defaults to the tag name; do not recommend setting this except for testing purposesASSETS_DIR- defaults to.wordpress-org, customizable for other locations of WordPress.org plugin repository-specific assets that belong in the top-levelassetsdirectory (the one on the same level astrunk)
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_USERNAME", "SVN_PASSWORD", "GITHUB_TOKEN"]
env = {
SLUG = "my-super-cool-plugin"
}
}
Want to help? Check out our contributing guidelines to get started.
Our GitHub Actions are available for use and remix under the MIT license.
