Skip to content

build: update goreleaser pre-build hook to run go mod tidy in cli dir… #2

build: update goreleaser pre-build hook to run go mod tidy in cli dir…

build: update goreleaser pre-build hook to run go mod tidy in cli dir… #2

Workflow file for this run

---
name: goreleaser
on:
push:
tags:
- "*"
env:
GO_VERSION: 1.26.2
jobs:
goreleaser:
name: Run GoReleaser
runs-on: ubuntu-latest
steps:
- name: Set up git repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Fetch all tags
run: git fetch --force --tags
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
with:
go-version: "${{ env.GO_VERSION }}"
cache-dependency-path: "**/*.sum"
- name: Fix GOPATH
run: echo "PATH=$(go env GOPATH)/bin:$PATH" >> "$GITHUB_ENV"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@ec59f474b9834571250b370d4735c50f8e2d1e29 # v7
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}