From a468305660cb7b6de512a0c07eca26be1f8c61a9 Mon Sep 17 00:00:00 2001 From: Eddort Date: Fri, 7 Jun 2024 10:37:12 +0200 Subject: [PATCH] feat: release --- .github/workflows/build.yaml | 1 - .goreleaser.yaml | 20 ++++++++++++++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a811b03..602b894 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -2,7 +2,6 @@ name: build on: pull_request: - push: permissions: contents: read diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 557c719..6573a1e 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -5,7 +5,7 @@ version: 2 -project_name: supply-chain-example +project_name: cubx # setups builds for linux and darwin on amd64 and arm64 # https://goreleaser.com/customization/build @@ -28,6 +28,23 @@ builds: # only needed if you actually use those things in your main package, otherwise can be ignored. - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} +archives: + - format_overrides: + - goos: windows + format: zip + name_template: >- + {{ .ProjectName }}_ + {{- .Version }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} + wrap_in_directory: true + files: + - README* + - LICENSE* + - docs/* + # proxies from the go mod proxy before building # https://goreleaser.com/customization/gomod gomod: @@ -66,4 +83,3 @@ signs: - "--yes" # needed on cosign 2.0.0+ artifacts: checksum output: true -