Skip to content

Commit

Permalink
Update goreleaser v1.19 (#192)
Browse files Browse the repository at this point in the history
* Update goreleaser v1.19

* fix
  • Loading branch information
ddddddO authored Jul 1, 2023
1 parent fbacf97 commit 490aa4d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
# デバッグ用
# branches:
# - goreleaser_v1.19


env:
REGISTRY: ghcr.io
Expand Down
33 changes: 16 additions & 17 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,12 @@ builds:
env:
- CGO_ENABLED=0
archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
darwin: darwin
linux: linux
windows: windows
386: i386
amd64: x86_64
- name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
format_overrides:
- goos: windows
format: zip
Expand All @@ -45,23 +44,23 @@ archives:
release:
prerelease: auto
brews:
- tap:
- repository:
owner: ddddddO
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
folder: Formula
homepage: 'https://github.com/ddddddO/gtree'
description: 'Output tree🌳 or Make directories(files)📁 from Markdown.'
license: "BSD-2-Clause"
scoop:
bucket:
owner: ddddddO
name: scoop-bucket
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
url_template: "https://github.com/ddddddO/gtree/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
homepage: "https://github.com/ddddddO/gtree"
description: "Output tree🌳 or Make directories(files)📁 from Markdown."
license: "BSD-2-Clause"
scoops:
- repository:
owner: ddddddO
name: scoop-bucket
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
url_template: "https://github.com/ddddddO/gtree/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
homepage: "https://github.com/ddddddO/gtree"
description: "Output tree🌳 or Make directories(files)📁 from Markdown."
license: "BSD-2-Clause"
nfpms:
- id: gtree-nfpms
file_name_template: "{{ .ProjectName }}_{{ .Version }}-1_{{ .Arch }}"
Expand Down

0 comments on commit 490aa4d

Please sign in to comment.