Skip to content

Commit

Permalink
ci: Release to Nix User Repository
Browse files Browse the repository at this point in the history
  • Loading branch information
NoUseFreak committed Feb 21, 2024
1 parent 23a9162 commit 0322b21
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: stable
- run: |
sudo apt-get update
sudo apt-get install -y nix-bin
sudo systemctl enable --now nix-daemon
sudo chmod -R 777 /nix/var/nix/daemon-socket
- uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
Expand Down
18 changes: 15 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ brews:
nfpms:
- file_name_template: "{{ .ConventionalFileName }}"
id: packages
homepage: https://github.com/nousefreak/projecthelper
description: "{{ .Env.PROJECT_DESCRIPTION}}"
homepage: "{{ .Env.PROJECT_HOMEPAGE }}"
description: "{{ .Env.PROJECT_DESCRIPTION }}"
license: "mit"
maintainer: Dries De Peuter <[email protected]>
license: MIT
vendor: NoUseFreak
bindir: /usr/bin
section: utils
Expand All @@ -114,3 +114,15 @@ nfpms:
lintian_overrides:
- statically-linked-binary
- changelog-file-missing-in-native-package

nix:
- repository:
owner: NoUseFreak
name: nix-nut
homepage: "{{ .Env.PROJECT_HOMEPAGE }}"
description: "{{ .Env.PROJECT_DESCRIPTION }}"
license: "mit"
extra_install: |
installManPage ./manpages/projecthelper.1.gz

0 comments on commit 0322b21

Please sign in to comment.