release

package
v0.0.129 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const CredentialsHelp = `` /* 240-byte string literal not displayed */

Variables

View Source
var DefaultSpecs = []*Spec{
	{Arch: "amd64", OS: "darwin"},
	{Arch: "arm64", OS: "darwin"},
	{Arch: "amd64", OS: "linux"},
	{Arch: "arm64", OS: "linux"},
}

Functions

func GetTag

func GetTag() (string, error)

Types

type BuildReleaseResult

type BuildReleaseResult struct {
	Tag   string
	Files []string
}

func BuildRelease

func BuildRelease(binaryName string, preBuild func() error, specs []*Spec, opts ...Option) (*BuildReleaseResult, error)

type Credentials

type Credentials struct {
	Token string `json:"token"`
	Owner string `json:"owner"`
	Repo  string `json:"repo"`
}

func LoadCredentials

func LoadCredentials(path string) (*Credentials, error)

type Option added in v0.0.129

type Option func(*buildConfig)

Option configures BuildRelease.

func WithPackagePath added in v0.0.129

func WithPackagePath(path string) Option

WithPackagePath sets the package path passed to go build (e.g. "./cmd/doctest"). Empty path is ignored (keeps the default "./").

type Spec

type Spec struct {
	Arch string
	OS   string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL