Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cli.Command{ Name: "release", Flags: []cli.Flag{ cli.StringSliceFlag{ Name: "platform", Usage: "Name of the @io_bazel_rules_go//go/toolchain:PLATFORM to cross-compile to", Value: &cli.StringSlice{ "linux_amd64", "windows_amd64", "darwin_amd64", }, }, cli.StringSliceFlag{ Name: "platform_name", Usage: "A string mapping of the form PLATFORM=NAME, such as 'windows_amd64=windows-x64_64'", Value: &cli.StringSlice{ "windows_amd64=windows-x64_64", "darwin_amd64=darwin-x64_64", "linux_amd64=linux-x64_64", }, }, cli.StringFlag{ Name: "asset_dir", Usage: "Name of directory where built platform-specific assets should be assembled", Value: ".assets", }, cli.StringFlag{ Name: "owner", Usage: "Name of github owner to publish release", Value: "bzl-io", }, cli.StringFlag{ Name: "repo", Usage: "Name of github repo to publish release", Value: "bzl", }, cli.StringFlag{ Name: "tag", Usage: "Tag name for the release such as '1.0.0' (required to publish)", }, cli.StringFlag{ Name: "notes", Usage: "Release notes filename (a path to markdown file)", Value: "RELEASE.md", }, cli.StringFlag{ Name: "commit", Usage: "Commit ID for the release (required when publishing a release).", }, cli.BoolFlag{ Name: "dry_run", Usage: "Build assets, but don't actually create a release", }, }, Usage: "Build target golang binaries for (multiple) platform(s) and publish a release to GitHub", Action: func(c *cli.Context) error { err := execute(c) if err != nil { return cli.NewExitError(fmt.Sprintf("release failed: %v", err), 1) } return nil }, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.