- Create a
release
branch - If no GitHub remote yet: Create a public repo on Github under the Tenseg org and name it
public
in the plugin project - Copy the updater folder into the root of the plugin
- Add code like the following to the bottom of the main plugin file
/**
* Plugin Updates
*/
function tg_{slug}_plugin_updates() {
require dirname( __FILE__ ) . '/plugin-updater/plugin-update-checker.php';
$myUpdateChecker = \YahnisElsts\PluginUpdateChecker\v5\PucFactory::buildUpdateChecker(
'{repo_url}',
__FILE__,
'{slug}'
);
$myUpdateChecker->setBranch( 'release' );
}
add_action( 'admin_init', 'tg_{slug}_plugin_updates' );
To release an update of a plugin or theme on Github
- Bump version and tested up to in header readme
- Add release notes to readme
- Commit update on main and push to internal remotes
- Push to Github
git push public main
in command line
- On Github create a pull request from main to release branch
- Confirm the merge
At this time the update will be showing on websites. But for the sake of creating a release log in Github… Go to Releases > Draft a new release. The information should be:
- Create a new tag that is the version number
- Target is “release” branch
- Title is version number
- The description should, among other things, list the release notes that are in the readme files.