github_pages 1.0.0 copy "github_pages: ^1.0.0" to clipboard
github_pages: ^1.0.0 copied to clipboard

Publish your web application to a gh-pages branch on GitHub.

github_pages #

Publish web files to a gh-pages branch on GitHub (or any other branch anywhere else).

pub package

Installation #

Add it to your pubspec.yaml file as a dev dependency because it's a command line tool.

dev_dependencies:
  github_pages:

Usage #

To use this package, first you need to build a web application bundle.

$ flutter build web
$ flutter pub run github_pages

Calling this script will create a temporary clone of the current repository, create a gh-pages branch if one doesn't already exist, copy over all files from the directory path, commit all changes, and push to the origin remote.

Options #

The default options work for simple cases. The options described below let you push to alternate branches, customize your commit messages, and more.

$ flutter pub run github_pages --help
-d, --dist          Base directory for all source files
                    (defaults to "build")
-b, --branch        Name of the branch you are pushing to
                    (defaults to "gh-pages")
-m, --message       Commit message
                    (defaults to "Updates")
-o, --remote        The name of the remote
                    (defaults to "origin")
-n, --no-push       Commit only (with no push)
-f, --no-history    Push force new commit without parent history
-h, --help          Usage help
3
likes
150
points
51
downloads

Publisher

unverified uploader

Weekly Downloads

Publish your web application to a gh-pages branch on GitHub.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

args, git, path, process_run

More

Packages that depend on github_pages