Documentation
¶
Overview ¶
Package publish implements the `publish` verb: tag what landed and create its release.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAssetsMisconfigured = cmdrelease.ErrAssetsMisconfigured
ErrAssetsMisconfigured reports --assets without --asset-base or the reverse. The check lives with `release` now (spec 0005 D7); this name is kept for the transition.
Functions ¶
func NewCmdPublish ¶
NewCmdPublish builds the `publish` command.
func RunPublish ¶
RunPublish is the `publish` verb.
Types ¶
type Options ¶
type Options struct {
Repo string
Target string
Branch string
Remote string
Author tree.Author
// Forge names the forge when the remote's host does not (spec 0009 D8).
Forge string
// TagOnly stops after the tag, leaving the release to a later run.
TagOnly bool
// Dist is goreleaser's output directory; AssetBase is where its artefacts
// were uploaded. Both or neither.
Dist string
AssetBase string
}
Options are the command's inputs.
type Prepared ¶
type Prepared struct {
Request publish.Request
// Held reports a hold in the manifest. A hold stops publish ACTING; it
// does not stop the release being computed or its merge request being
// maintained.
Held bool
HoldReason string
// TagAlso is what the CHECKOUT's manifest names. The commit being
// published may name fewer; the report says so rather than tagging.
TagAlso []string
Forge remoteForge
}
Prepared is everything `publish` resolved before writing anything.
type PublishOptions ¶
type PublishOptions struct {
Repo string
Target string
Branch string
Remote string
Forge string
AuthorName string
AuthorEmail string
// TagOnly stops after the tag, leaving the release to a later run.
TagOnly bool
// Dist is goreleaser's output directory, read for its manifest.
Dist string
// AssetBase is the URL the artefacts were uploaded under.
AssetBase string
}
PublishOptions holds the command's flags.
Click to show internal directories.
Click to hide internal directories.