++ed by:
ILUX
Author image Yuki Kimoto

NAME

Giblog::Command::publish - Website publish command

DESCRIPTION

Giblog::Command::publish is website publish command.

METHODS

Giblog::Command::publish inherits all methods from Giblog::Command and implements the following new ones.

run

  $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