Skip to content

Commit a3f9786

Browse files
committed
feat: initial commit
0 parents  commit a3f9786

40 files changed

Lines changed: 4851 additions & 0 deletions

.github/workflows/release.yml

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

.gitignore

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Binaries for programs and plugins
2+
*.exe
3+
*.exe~
4+
*.dll
5+
*.so
6+
*.dylib
7+
mm
8+
momorph
9+
momorph-cli
10+
11+
# Test binary, built with `go test -c`
12+
*.test
13+
14+
# Output of the go coverage tool
15+
*.out
16+
coverage.out
17+
coverage.html
18+
19+
# Dependency directories
20+
vendor/
21+
22+
# Go workspace file
23+
go.work
24+
25+
# Build directories
26+
bin/
27+
dist/
28+
build/
29+
out/
30+
31+
# IDE directories
32+
.idea/
33+
.vscode/
34+
*.swp
35+
*.swo
36+
*~
37+
38+
# OS files
39+
.DS_Store
40+
Thumbs.db
41+
42+
# Log files
43+
*.log
44+
logs/
45+
46+
# Environment variables
47+
.env
48+
.env.local
49+
.env*.local
50+
51+
# Temporary files
52+
*.tmp
53+
tmp/
54+
55+
# Debug files
56+
debug
57+
__debug_bin
58+
59+
# Test cache
60+
.cache/

.goreleaser.yml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
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+
- go mod download
14+
15+
snapshot:
16+
version_template: "{{ incpatch .Version }}"
17+
18+
builds:
19+
- env:
20+
- CGO_ENABLED=0
21+
goos:
22+
- linux
23+
- windows
24+
- darwin
25+
binary: momorph
26+
mod_timestamp: "{{ .CommitTimestamp }}"
27+
ldflags:
28+
- -s -w
29+
- -X github.com/momorph/cli/internal/version.Version={{ .Version }}
30+
- -X github.com/momorph/cli/internal/version.CommitSHA={{ .ShortCommit }}
31+
- -X github.com/momorph/cli/internal/version.BuildDate={{ .Date }}
32+
33+
brews:
34+
- repository:
35+
owner: momorph
36+
name: homebrew-tap
37+
name: momorph-cli
38+
homepage: "https://github.com/momorph/cli"
39+
description: "MoMorph CLI"
40+
directory: Formula
41+
license: "MIT"
42+
install: |
43+
bin.install "momorph"
44+
test: |
45+
system "#{bin}/momorph", "version"
46+
47+
archives:
48+
- name_template: "momorph-cli_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
49+
formats:
50+
- tar.gz
51+
format_overrides:
52+
- goos: windows
53+
formats:
54+
- zip
55+
builds_info:
56+
mtime: "{{ .CommitDate }}"
57+
files: ["LICENSE"]
58+
59+
checksum:
60+
name_template: "checksums.txt"
61+
algorithm: sha256
62+
63+
changelog:
64+
sort: asc
65+
use: github
66+
filters:
67+
exclude:
68+
- "^test:"
69+
- "^test\\("
70+
- "merge conflict"
71+
- Merge pull request
72+
- Merge remote-tracking branch
73+
- Merge branch
74+
- go mod tidy
75+
groups:
76+
- title: Dependency updates
77+
regexp: '^.*?(.+)\(deps\)!?:.+$'
78+
order: 300
79+
- title: "New Features"
80+
regexp: '^.*?feat(\(.+\))??!?:.+$'
81+
order: 100
82+
- title: "Security updates"
83+
regexp: '^.*?sec(\(.+\))??!?:.+$'
84+
order: 150
85+
- title: "Bug fixes"
86+
regexp: '^.*?(fix|refactor)(\(.+\))??!?:.+$'
87+
order: 200
88+
- title: "Documentation updates"
89+
regexp: ^.*?docs?(\(.+\))??!?:.+$
90+
order: 400
91+
- title: "Build process updates"
92+
regexp: ^.*?(build|ci)(\(.+\))??!?:.+$
93+
order: 400
94+
- title: Other work
95+
order: 9999

0 commit comments

Comments
 (0)