Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
with:
go-version: 1.24
- run: sudo apt-get install libx11-dev
- uses: goreleaser/goreleaser-action@v5
- uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
Expand Down
8 changes: 5 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
version: 2

before:
hooks:
- go mod tidy
Expand All @@ -11,7 +13,7 @@ builds:
binary: daylog

archives:
- format: tar.gz
- formats: [tar.gz]
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
Expand All @@ -21,13 +23,13 @@ archives:
{{- if .Arm }}v{{ .Arm }}{{ end }}
format_overrides:
- goos: windows
format: zip
formats: [zip]

checksum:
name_template: checksums.txt

snapshot:
name_template: "{{ incpatch .Version }}-next"
version_template: "{{ incpatch .Version }}-next"

changelog:
sort: asc
Expand Down
4 changes: 4 additions & 0 deletions tasks.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,9 @@ cmds = ["go test ./... -race"]
[tasks.release]
cmds = ["git tag {{.CLI_ARGS}}", "git push origin --tags"]

[tasks.release_dry]
desc = "goreleaser dry run"
cmds = ["goreleaser release --clean --skip publish --skip validate"]

[tasks."new:command"]
cmds = ["cobra-cli add {{.CLI_ARGS}}"]