Skip to content

Commit

Permalink
[feat] Add nix NUR target to goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
robinovitch61 committed Nov 16, 2023
1 parent dc07426 commit f8f30b7
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
AUR_KEY: ${{ secrets.AUR_KEY }}
NUR_PACKAGES_GITHUB_TOKEN: ${{ secrets.NUR_PACKAGES_GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# GITHUB_TOKEN - token for the wander repository, provided in GitHub Action
# HOMEBREW_TAP_GITHUB_TOKEN - token for the homebrew tap repository, must be set
# AUR_KEY - key for the AUR repository, must be set
# NUR_PACKAGES_GITHUB_TOKEN - token for the NUR packages repository, must be set

name: release

Expand Down Expand Up @@ -35,3 +36,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
AUR_KEY: ${{ secrets.AUR_KEY }}
NUR_PACKAGES_GITHUB_TOKEN: ${{ secrets.NUR_PACKAGES_GITHUB_TOKEN }}
21 changes: 18 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ release:
brews:
- name: wander
homepage: https://github.com/robinovitch61/wander
description: "A terminal app/TUI for HashiCorp Nomad"
description: "An efficient terminal application/TUI for interacting with your HashiCorp Nomad cluster."
folder: Formula
commit_author:
name: goreleaserbot
email: goreleaserbot@theleo.zone
name: "Leo Robinovitch"
email: "leorobinovitch@gmail.com"
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
repository:
owner: robinovitch61
Expand All @@ -83,5 +83,20 @@ aurs:
email: "leorobinovitch@gmail.com"
skip_upload: auto

nix:
- name: wander
commit_author:
name: "Leo Robinovitch"
email: "leorobinovitch@gmail.com"
homepage: "https://github.com/robinovitch61/wander"
description: "An efficient terminal application/TUI for interacting with your HashiCorp Nomad cluster."
license: "MIT"
skip_upload: auto
repository:
owner: robinovitch61
name: nur-packages
branch: main
token: "{{ .Env.NUR_PACKAGES_GITHUB_TOKEN }}"

gomod:
proxy: true

0 comments on commit f8f30b7

Please sign in to comment.