Giblog::Command::publish - Website publish command
Giblog::Command::publish is website publish command.
Giblog::Command::publish inherits all methods from Giblog::Command and implements the following new ones.
$command->run($remote_repository, $branch);
Publish your website by specifing remote repository name and branch name.
This is the same as the following command. In this example, the repository name is origin and the branch name is main. YY-mm-dd HH:MM:SS is current date and time.
git -C public add --all git -C public commit -m "Published by Giblog at YY-mm-dd HH:MM:SS" git -C public push origin main
To install Giblog, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Giblog
CPAN shell
perl -MCPAN -e shell install Giblog
For more information on module installation, please visit the detailed CPAN module installation guide.