release

package
v0.0.144 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: MIT Imports: 5 Imported by: 3 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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