githubRepo top-level property

ConfigVariable<String> githubRepo
final

The GitHub repository slug (for example, username/repo) to which to upload package releases.

By default, this determines the repo from Git's origin remote, failing that, from the pubspec's homepage field. If neither of those is a valid Git URL, this must be set explicitly.

Implementation

final githubRepo = InternalConfigVariable.fn<String>(() =>
    _repoFromOrigin() ??
    _parseHttp(pubspec.homepage ?? '') ??
    fail("pkg.githubRepo must be set to deploy to GitHub."));