Skip to content

Commit

Permalink
Merge pull request #115 from numtide/feat/add-goreleaser
Browse files Browse the repository at this point in the history
feat: configure goreleaser
  • Loading branch information
brianmcgee authored Sep 13, 2024
2 parents c03851a + 147764a commit 436f700
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com

# The lines below are called `modelines`. See `:help modeline`
# Feel free to remove those if you don't want/need to use them.
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj

version: 2

project_name: nixos-facter

before:
hooks:
- go mod tidy

builds:
- env:
- CGO_ENABLED=0
ldflags:
- -s -w -X git.numtide.com/numtide/nixos-facter/build.Version=v{{.Version}}
goos:
- linux
- darwin

# marks the release as draft to allow editing before publishing as latest
release:
draft: true

changelog:
sort: asc
use: github
filters:
exclude:
- "^chore:"
- "^docs:"
- "^test:"
1 change: 1 addition & 0 deletions nix/devshells/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ perSystem.self.nixos-facter.overrideAttrs (old: {
pkgs.golangci-lint
pkgs.cobra-cli
pkgs.fx # json tui
pkgs.goreleaser
perSystem.hwinfo.default
];
shellHook = ''
Expand Down

0 comments on commit 436f700

Please sign in to comment.