Skip to content

Commit 13545ce

Browse files
authored
[chore]: Fix version (#35)
* update * update
1 parent 8e50281 commit 13545ce

File tree

5 files changed

+28
-46
lines changed

5 files changed

+28
-46
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
# リリース
2626
- uses: goreleaser/goreleaser-action@v4
2727
with:
28-
args: release --rm-dist
28+
args: release --clean
2929
env:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3131
TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,52 @@
1-
# This is an example .goreleaser.yml file with some sensible defaults.
2-
# Make sure to check the documentation at https://goreleaser.com
1+
# .goreleaser.yml
2+
version: 2
3+
# Before section
34
before:
45
hooks:
5-
# You may remove this if you don't use go modules.
6+
# Ensure go modules are tidy
67
- go mod tidy
7-
# you may remove this if you don't need go generate
8+
# Optionally, run go generate if needed
89
- go generate ./...
10+
# Builds section
911
builds:
1012
- env:
1113
- CGO_ENABLED=0
1214
goos:
1315
- linux
1416
- windows
1517
- darwin
16-
18+
# Add additional build configurations as needed
19+
# Archives section
1720
archives:
18-
- format: tar.gz
19-
# this name template makes the OS and Arch compatible with the results of uname.
21+
- id: tar_gz
22+
format: tar.gz
23+
# Customize archive name based on OS and Arch
2024
name_template: >-
21-
{{ .ProjectName }}_
22-
{{- title .Os }}_
23-
{{- if eq .Arch "amd64" }}x86_64
24-
{{- else if eq .Arch "386" }}i386
25-
{{- else }}{{ .Arch }}{{ end }}
26-
{{- if .Arm }}v{{ .Arm }}{{ end }}
27-
# use zip for windows archives
28-
format_overrides:
29-
- goos: windows
30-
format: zip
25+
{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}
26+
- id: zip
27+
format: zip
28+
# Format override for Windows
29+
name_template: >-
30+
{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}
31+
# Checksum section
3132
checksum:
3233
name_template: "checksums.txt"
34+
# Snapshot section
3335
snapshot:
3436
name_template: "{{ incpatch .Version }}-next"
37+
# Changelog section
3538
changelog:
3639
sort: asc
3740
filters:
3841
exclude:
3942
- "^docs:"
4043
- "^test:"
41-
44+
# Brews section (if applicable)
4245
brews:
43-
- tap:
46+
-
47+
ids:
48+
- tar_gz
49+
repository:
4450
owner: orangekame3
4551
name: homebrew-tap
4652
token: "{{ .Env.TAP_GITHUB_TOKEN }}"

.tagpr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@
3939
[tagpr]
4040
vPrefix = true
4141
releaseBranch = main
42-
versionFile = version.go
42+
versionFile = cmd/version.go

cmd/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ package cmd
2525
import "fmt"
2626

2727
// Version is a version of this application.
28-
const Version = "0.0.12"
28+
const Version = "0.0.13"
2929

3030
// SetVersionInfo sets version and date to rootCmd
3131
func SetVersionInfo(version, date string) {

version.go

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)