Snapshot của goreleaser/goreleaser-action: 1.0k★ · TypeScript · Backend. GitHub Action for GoReleaser
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
GoReleaser Action runs goreleaser, please follow its docs for
more information about how to customize what GoReleaser does.
Workflow
name: goreleaser
on:
pull_request:
push:
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v6
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v7
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
# 'latest', 'nightly', or a semver
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
IMPORTANT: note the fetch-depth: 0 input in Checkout step. It is required for the changelog to work correctly.
Verification
The action verifies the integrity of the downloaded GoReleaser archive
against the published checksums.txt automatically — no configuration
required.
If cosign is available on PATH, the
action will additionally verify the cosign sigstore signature of the
checksums file against the GoReleaser release workflow's OIDC identity. If
cosign isn't installed, this step is silently skipped.
Note: cosign signature verification requires GoReleaser v2.13.0 or
newer (and the matching nightly). Earlier releases ship a .sig
detached signature signed with cosign v2, which is not compatible with
the cosign v3 sigstore-bundle format the action verifies. For older
versions the cosign step is silently skipped — only the checksums.txt
SHA-256 verification runs.
Note: when version: nightly is used, the action resolves the
latest immutable vX.Y.Z-<sha>-nightly release from the GitHub
Releases API. Pass GITHUB_TOKEN to the action step (as in the example
above) to avoid unauthenticated API rate limits.
To enable signature verification, install cosign before running the action:
For some events like pull request or schedule you might want to store the artifacts somewhere for testing
purposes. You can do that with the actions/upload-artifact action:
steps:
-
name: Install GoReleaser
uses: goreleaser/goreleaser-action@v7
with:
install-only: true
-
name: Show GoReleaser version
run: goreleaser -v
Cache the binary
The action looks for GoReleaser in the runner tool cache before it
downloads. A second use of the action in the same job, or any job on a
self-hosted runner that already has the version, installs immediately.
A binary taken from the tool cache is not verified again. The cache records
whether checksum or checksum and cosign verification completed. When cosign is
available, the action only reuses a signature-verified entry. A binary whose
checksum could not be verified is used for that invocation but is not cached.
On a self-hosted runner the tool cache is kept between jobs, so it must be
trusted like the runner itself. GitHub-hosted runners start with an empty tool
cache in every job, so they always download and verify.
Customizing
inputs
Following inputs can be used as step.with keys
Name
Type
Default
Description
distribution
String
goreleaser
GoReleaser distribution, either goreleaser or goreleaser-pro
version¹
String
~> v2
GoReleaser version
version-file²
String
Read the GoReleaser version from a file (see below)
args
String
Arguments to pass to GoReleaser
workdir
String
.
Working directory (below repository root)
install-only
Bool
false
Just install GoReleaser
¹ Can be a fixed version like v0.117.0 or a max satisfying semver one like ~> 0.132. In this case this will return v0.132.1.
² Path to a file containing the GoReleaser version. Resolved relative
to workdir. Currently only .tool-versions
(asdf/mise) format is supported. When set, this takes precedence over version.
Following environment variables can be used as step.env keys
Name
Description
GITHUB_TOKEN
GITHUB_TOKEN as provided by secrets and requires contents:write
GORELEASER_KEY
Your GoReleaser Pro License Key, in case you are using the goreleaser-pro distribution
Limitation
GITHUB_TOKEN permissions are limited to the repository
that contains your workflow.
If you need to push the homebrew tap to another repository, you must therefore create a custom Personal Access Token
with repo permissions and add it as a secret in the repository. If you create a
secret named GH_PAT, the step will look like this:
goreleaser/goreleaser-action thuộc nhóm Backend trên TopGit, cùng 5 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về goreleaser/goreleaser-action ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/goreleaser/goreleaser-action là nguồn chính thức.
goreleaser/goreleaser-action có phải mã nguồn mở không?
Có — goreleaser/goreleaser-action phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/goreleaser/goreleaser-action.
goreleaser/goreleaser-action là gì?
goreleaser/goreleaser-action (goreleaser/goreleaser-action) là dự án TypeScript trên GitHub. Theo mô tả gốc: GitHub Action for GoReleaser
goreleaser/goreleaser-action so với các dự án Backend khác thế nào?
goreleaser/goreleaser-action được TopGit xếp vào nhóm Backend, với 1.0k sao GitHub và viết bằng TypeScript. Xem trang chủ đề Backend trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
Vì sao goreleaser/goreleaser-action được xếp vào nhóm Backend?
TopGit xếp goreleaser/goreleaser-action vào nhóm Backend dựa trên GitHub topics và mô tả của repo (gắn thẻ: "actions", "github-actions", "golang"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về goreleaser-action?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về goreleaser-action.