diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e2c557e..3d471ee 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v6 with: - go-version: stable + go-version-file: go.mod # More assembly might be required: Docker logins, GPG, etc. # It all depends on your needs. - name: Run GoReleaser diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 06bdf8c..0c93734 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -9,15 +9,6 @@ version: 2 project_name: hostlink -before: - hooks: - # You may remove this if you don't use go modules. - - go mod tidy - # you may remove this if you don't need go generate - - go generate ./... - # Run unit tests before building - - make test - builds: - id: hostlink binary: hostlink @@ -47,6 +38,21 @@ builds: ldflags: - -s -w -X hostlink/version.Version={{.Version}} + - id: hlctl + binary: hlctl + main: ./cmd/hlctl + env: + - CGO_ENABLED=0 + goos: + - linux + - darwin + - windows + goarch: + - amd64 + - arm64 + ldflags: + - -s -w -X hostlink/version.Version={{.Version}} + archives: - id: hostlink-archive ids: [hostlink, hlctl]