runGitCommitGhBranch function
git commit (to gh-pages banch)
Implementation
Future<void> runGitCommitGhBranch({
required String flutterProject,
}) async {
final publishDir = path.join(
path.current,
flutterProject,
flutterBuildWebDist,
);
final commitMsg = getCommitMsg();
final library = GitLibrary();
await library.commitToBranch(
contentDirFullPath: publishDir,
branch: githubPagesBranch,
commitMsg: commitMsg,
);
}