From f8f30b771fa6db268f82565cba0bbf929f585622 Mon Sep 17 00:00:00 2001 From: Leo Robinovitch Date: Thu, 16 Nov 2023 11:35:27 -0800 Subject: [PATCH] [feat] Add nix NUR target to goreleaser --- .github/workflows/build.yml | 1 + .github/workflows/release.yml | 2 ++ .goreleaser.yaml | 21 ++++++++++++++++++--- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5f534f2a..2d6299ef 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b014d574..e8ddac30 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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 }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 836bbc45..5b3a059a 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -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 @@ -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