Skip to content

Commit

Permalink
v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kobayashi committed Jul 31, 2024
1 parent 17c0ba7 commit 534f6ba
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ jobs:
with:
distribution: goreleaser
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24 changes: 17 additions & 7 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
version: 2

project_name: eol
release:
prerelease: auto
Expand All @@ -15,14 +17,22 @@ builds:
- -s -w
- -X main.Version={{.Version}}
- -X main.Revision={{.ShortCommit}}
goos:
- linux
- windows
- darwin

archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
darwin: darwin
linux: linux
windows: windows
386: i386
amd64: x86_64
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
2 changes: 1 addition & 1 deletion pkg/commands/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
)

const version = "v0.1.0"
const version = "v0.2.0"

// RunVersion shows the current version
func RunVersion() {
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

func TestRunVersion(t *testing.T) {
out := capture(RunVersion)
if out != "v0.1.0" {
if out != "v0.2.0" {
t.Errorf("unexpected output: %s", out)
}
}
Expand Down

0 comments on commit 534f6ba

Please sign in to comment.