Skip to content

Commit

Permalink
feat: release
Browse files Browse the repository at this point in the history
  • Loading branch information
eddort committed Jun 7, 2024
1 parent a818967 commit a468305
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: build

on:
pull_request:
push:

permissions:
contents: read
Expand Down
20 changes: 18 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -66,4 +83,3 @@ signs:
- "--yes" # needed on cosign 2.0.0+
artifacts: checksum
output: true

0 comments on commit a468305

Please sign in to comment.