From 10170823d0fd555a4aa2a0cf9e0964af6dc5f3e7 Mon Sep 17 00:00:00 2001 From: Leo Robinovitch Date: Thu, 6 Jul 2023 14:22:04 +0100 Subject: [PATCH] Include versions in goreleaser distributions and re-rename archives --- .github/workflows/build.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .goreleaser.yaml | 30 ++++++++++++++++++++++-------- README.md | 3 +++ 4 files changed, 29 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f1049979..3f150ae1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Set up Go @@ -17,7 +17,7 @@ jobs: with: go-version: '1.20' - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2 + uses: goreleaser/goreleaser-action@v4 with: distribution: goreleaser version: latest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bbe3f73e..f9e1083f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Set up Go @@ -25,7 +25,7 @@ jobs: with: go-version: '1.20' - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2 + uses: goreleaser/goreleaser-action@v4 with: distribution: goreleaser version: latest diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 72ac8cf8..e8a6ea6a 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -20,6 +20,17 @@ builds: - linux - windows +archives: + - name_template: >- + {{ .ProjectName }}_{{ .Version }}_ + {{- if eq .Os "darwin" }}Darwin + {{- else if eq .Os "linux" }}Linux + {{- else if eq .Os "windows" }}Windows + {{- else }}{{ .Os }}{{ end }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} + checksum: name_template: 'checksums.txt' @@ -42,16 +53,19 @@ release: name: wander brews: - - homepage: https://github.com/robinovitch61/wander - description: "A terminal app for Nomad by HashiCorp" + - name: wander + homepage: https://github.com/robinovitch61/wander + description: "A terminal app/TUI for HashiCorp Nomad" folder: Formula - tap: + commit_author: + name: goreleaserbot + email: goreleaserbot@theleo.zone + commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}" + repository: owner: robinovitch61 name: homebrew-tap branch: main token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}" - commit_author: - name: goreleaserbot - email: goreleaserbot@theleo.zone - install: | - bin.install "wander" + +gomod: + proxy: true diff --git a/README.md b/README.md index 4fe40166..1dfb5969 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,9 @@ An efficient terminal application/TUI for your [HashiCorp Nomad](https://www.nom ```shell brew install robinovitch61/tap/wander + +# to upgrade +brew update && brew upgrade wander ``` ### > Install from AUR