Skip to content

Commit

Permalink
Merge pull request #23 from eddort/feat/release
Browse files Browse the repository at this point in the history
feat: release
  • Loading branch information
eddort authored Jun 7, 2024
2 parents a818967 + d5318d4 commit 210a97a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: build
on:
pull_request:
push:
- main

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 210a97a

Please sign in to comment.