Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/go-pre-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ jobs:
path: |
dist/*.tar.gz
dist/*.zip
dist/*.deb
dist/*.rpm
dist/*.apk
dist/*.sbom.json
dist/checksums.txt
dist/checksums.txt.sigstore.json
Expand Down
17 changes: 17 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,29 @@ archives:
name_template: >-
{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}

nfpms:
- id: release-cli
ids:
- release-cli
vendor: Meigma
homepage: https://github.com/meigma/release
maintainer: Meigma <contact@meigma.dev>
description: Exercise the Meigma release pipeline.
license: LicenseRef-Proprietary
formats:
- deb
- rpm
- apk
bindir: /usr/bin

checksum:
name_template: checksums.txt

sboms:
- id: archives
artifacts: archive
- id: packages
artifacts: package

signs:
- id: checksums
Expand Down
7 changes: 7 additions & 0 deletions internal/profile/goprof/artifacts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ func TestSelectBinaries(t *testing.T) {
linuxBinary("amd64", "dist/release-cli_linux_amd64/release-cli"),
linuxBinary("arm64", "dist/release-cli_linux_arm64/release-cli"),
{Type: "Archive", GOOS: "linux", GOARCH: "amd64", Path: "dist/archive.tar.gz", Name: "archive.tar.gz"},
{
Type: "Linux Package",
GOOS: "linux",
GOARCH: "amd64",
Path: "dist/release-cli_0.1.2_linux_amd64.deb",
Name: "release-cli",
},
{
Type: "Binary",
GOOS: "darwin",
Expand Down