diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index efc40c2..73df14b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -62,6 +62,12 @@ jobs: gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} passphrase: ${{ secrets.GPG_PASSPHRASE }} + - name: Install goreleaser + uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0 + with: + version: v2.3.2 + install-only: true + - name: Run goreleaser run: make ${{ github.ref == 'refs/heads/main' && 'pre' || '' }}release env: diff --git a/.goreleaser.pre.yml b/.goreleaser.pre.yml index aad8dab..1818411 100644 --- a/.goreleaser.pre.yml +++ b/.goreleaser.pre.yml @@ -1,3 +1,4 @@ +version: 2 before: hooks: - make man-pages @@ -58,7 +59,7 @@ nfpms: file_info: mode: 0644 - src: ./helpers/autocomplete/zsh - dst: /usr/share/zsh/vendor-completions/_{{ .ProjectName }} + dst: /usr/share/zsh/vendor-completions/_{{ .ProjectName }} file_info: mode: 0644 - src: ./helpers/manpages/{{ .ProjectName }}.1.gz diff --git a/.goreleaser.yml b/.goreleaser.yml index b78a701..ff8e477 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,4 @@ +version: 2 before: hooks: - make man-pages @@ -58,7 +59,7 @@ nfpms: file_info: mode: 0644 - src: ./helpers/autocomplete/zsh - dst: /usr/share/zsh/vendor-completions/_{{ .ProjectName }} + dst: /usr/share/zsh/vendor-completions/_{{ .ProjectName }} file_info: mode: 0644 - src: ./helpers/manpages/{{ .ProjectName }}.1.gz @@ -74,7 +75,7 @@ brews: - description: *description homepage: *homepage license: *license - folder: Formula + directory: Formula repository: owner: mvisonneau name: homebrew-tap