Hoster GitHub Integration

WP Self Hoster introduces GitHub Authentication, enabling access to and serving of private repositories.

Once you connect your account and grant access, you will get a dropdown to choose your repository. After selecting the repository, you will automatically receive the release zip and plugin version.

Not Connected

screenshot 2024 07 02 at 19.00.22

Connected

screenshot 2024 07 02 at 19.00.00

Main Template code improvements

define($plugin_prefix . '_VER', '3.0.1');
// Extract the version number
$plugin_data = get_file_data(__FILE__, ['Version' => 'Version']);
define($plugin_prefix . '_VER', $plugin_data['Version']);
<?php

/**
 * Plugin Name:       Marko
 * Description:       Marko's plugin description
 * Requires at least: 6.3.0
 * Requires PHP:      7.4
 * Version:           0.0.1
 * Author:            dev
 * License:           GPL-2.0-or-later
 * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain:       marko
 * Website:           
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

$plugin_prefix = 'MARKO';

// Extract the version number
$plugin_data = get_file_data(__FILE__, ['Version' => 'Version']); // <= Updated here

// Plugin Constants
define($plugin_prefix . '_DIR', plugin_basename(__DIR__));
define($plugin_prefix . '_BASE', plugin_basename(__FILE__));
define($plugin_prefix . '_PATH', plugin_dir_path(__FILE__));
define($plugin_prefix . '_VER', $plugin_data['Version']);  // <= Updated here

Release Template improvements

Added .gitignore and .distignore

screenshot 2024 07 09 at 09.52.27
hoster banner bg