Skip to content

Commit 4471bf5

Browse files
committed
chore: added goreleaser configuration
1 parent dd12d4e commit 4471bf5

4 files changed

Lines changed: 97 additions & 12 deletions

File tree

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: test
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
release-clis:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
16+
- uses: actions/setup-go@v5
17+
with:
18+
go-version: '^1.23.0'
19+
20+
- name: Run GoReleaser
21+
uses: goreleaser/goreleaser-action@v6
22+
with:
23+
version: '~> v2'
24+
args: release --clean
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
.idea/
22
*.iml
33

4+
dist/
5+
46
*.mkv
57
*.mk3d
68
*.mka

.goreleaser.yaml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# This is an example .goreleaser.yml file with some sensible defaults.
2+
# Make sure to check the documentation at https://goreleaser.com
3+
4+
# The lines below are called `modelines`. See `:help modeline`
5+
# Feel free to remove those if you don't want/need to use them.
6+
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
7+
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
8+
9+
version: 2
10+
11+
before:
12+
hooks:
13+
# You may remove this if you don't use go modules.
14+
- go mod tidy
15+
# you may remove this if you don't need go generate
16+
- go generate ./...
17+
18+
builds:
19+
- id: mkc
20+
main: ./cmd/mkc
21+
env:
22+
- CGO_ENABLED=0
23+
goos:
24+
- linux
25+
- windows
26+
- darwin
27+
goarch:
28+
- amd64
29+
- arm64
30+
- id: mkdev
31+
main: ./cmd/mkdev
32+
env:
33+
- CGO_ENABLED=0
34+
goos:
35+
- linux
36+
- windows
37+
- darwin
38+
goarch:
39+
- amd64
40+
- arm64
41+
42+
archives:
43+
- formats: [tar.gz]
44+
# this name template makes the OS and Arch compatible with the results of `uname`.
45+
name_template: >-
46+
{{ .ProjectName }}_
47+
{{- title .Os }}_
48+
{{- if eq .Arch "amd64" }}x86_64
49+
{{- else if eq .Arch "386" }}i386
50+
{{- else }}{{ .Arch }}{{ end }}
51+
{{- if .Arm }}v{{ .Arm }}{{ end }}
52+
# use zip for windows archives
53+
format_overrides:
54+
- goos: windows
55+
formats: [zip]
56+
57+
changelog:
58+
sort: asc
59+
filters:
60+
exclude:
61+
- "^docs:"
62+
- "^test:"
63+
64+
release:
65+
footer: >-
66+
67+
---
68+
69+
Released by [GoReleaser](https://github.com/goreleaser/goreleaser).

go.sum

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,6 @@ github.com/charmbracelet/x/exp/strings v0.0.0-20250407102404-92fd13048199 h1:ERK
3030
github.com/charmbracelet/x/exp/strings v0.0.0-20250407102404-92fd13048199/go.mod h1:pBhA0ybfXv6hDjQUZ7hk1lVxBiUbupdw5R31yPUViVQ=
3131
github.com/charmbracelet/x/term v0.2.1 h1:AQeHeLZ1OqSXhrAWpYUtZyX1T3zVxfpZuEQMIQaGIAQ=
3232
github.com/charmbracelet/x/term v0.2.1/go.mod h1:oQ4enTYFV7QN4m0i9mzHrViD7TQKvNEEkHUMCmsxdUg=
33-
github.com/coding-socks/ebml v0.0.0-20250409185428-3a0bcb87ec98 h1:OMkiM9+3+Q0Q+6r6s5Y3xJXNrFq6uAdfODbTF3iUxmo=
34-
github.com/coding-socks/ebml v0.0.0-20250409185428-3a0bcb87ec98/go.mod h1:6RUr58mWiQHHZiL2UFb8JygHNS5E35wGJfEmoSsDyI0=
35-
github.com/coding-socks/ebml v0.0.0-20250413191753-908e87a1adf5 h1:fgjgpV5PH7z03eKverW8/e7F2c/HlSVigr57N7HslWw=
36-
github.com/coding-socks/ebml v0.0.0-20250413191753-908e87a1adf5/go.mod h1:6RUr58mWiQHHZiL2UFb8JygHNS5E35wGJfEmoSsDyI0=
37-
github.com/coding-socks/ebml v0.0.0-20250420185432-fb92145e777f h1:EdKMD0XMklHSmM4/FJZSuImZIVCDa0dYkED1dwHaacc=
38-
github.com/coding-socks/ebml v0.0.0-20250420185432-fb92145e777f/go.mod h1:6RUr58mWiQHHZiL2UFb8JygHNS5E35wGJfEmoSsDyI0=
39-
github.com/coding-socks/ebml v0.0.0-20250422170819-dc6ebdf21abd h1:nz+11xhFTaxZMUcOY+Iuh7asH160pfq7T+v9mVZEZok=
40-
github.com/coding-socks/ebml v0.0.0-20250422170819-dc6ebdf21abd/go.mod h1:6RUr58mWiQHHZiL2UFb8JygHNS5E35wGJfEmoSsDyI0=
41-
github.com/coding-socks/ebml v0.0.0-20250423152522-9ccc7122c118 h1:T63MS67JwXtfQzzG5op7gar+6nrHFaNIABFNGiygibE=
42-
github.com/coding-socks/ebml v0.0.0-20250423152522-9ccc7122c118/go.mod h1:6RUr58mWiQHHZiL2UFb8JygHNS5E35wGJfEmoSsDyI0=
43-
github.com/coding-socks/ebml v0.0.0-20250423185329-7aabf7e89ae9 h1:xCzC2gZ2uC1Fbh1tT1de6DHtGO/YOsEXlgpXik0kELU=
44-
github.com/coding-socks/ebml v0.0.0-20250423185329-7aabf7e89ae9/go.mod h1:6RUr58mWiQHHZiL2UFb8JygHNS5E35wGJfEmoSsDyI0=
4533
github.com/coding-socks/ebml v0.0.0-20250423205039-3eaea91d5d71 h1:asw2kEIPHmbb9Y7RZanKoZ5v5fHnOv7G/WmR8wO4EkU=
4634
github.com/coding-socks/ebml v0.0.0-20250423205039-3eaea91d5d71/go.mod h1:6RUr58mWiQHHZiL2UFb8JygHNS5E35wGJfEmoSsDyI0=
4735
github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY=

0 commit comments

Comments
 (0)