Skip to content

Commit

Permalink
Merge pull request #711 from suzuki-shunsuke/ci-install-goreleaser
Browse files Browse the repository at this point in the history
ci: install Goreleaser to fix the release workflow
  • Loading branch information
mvisonneau authored Oct 1, 2024
2 parents 79604d3 + bfb7798 commit eb13718
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion .goreleaser.pre.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: 2
before:
hooks:
- make man-pages
Expand Down Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: 2
before:
hooks:
- make man-pages
Expand Down Expand Up @@ -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
Expand All @@ -74,7 +75,7 @@ brews:
- description: *description
homepage: *homepage
license: *license
folder: Formula
directory: Formula
repository:
owner: mvisonneau
name: homebrew-tap
Expand Down

0 comments on commit eb13718

Please sign in to comment.