Skip to content

Commit

Permalink
ops: add goreleaser via mise
Browse files Browse the repository at this point in the history
  • Loading branch information
sweepies committed Jan 30, 2025
1 parent bb1d541 commit 7695a84
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"workbench.colorTheme": "Monokai"
}
}
}
},
"postStartCommand": "curl https://mise.run | sh"
}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@ go.work

.tiktok_cache.db
tiktok/
build/
build/
dist/
40 changes: 40 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj

version: 2

before:
hooks:
- go mod tidy

builds:
- id: "tok-dl"
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64

archives:
- formats:
- tar.gz
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- .Arch }}_
{{- .Version }}
format_overrides:
- goos: windows
formats:
- zip

changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
6 changes: 6 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[env]
_.file = ".env"

[tools]
go = "1.23"
goreleaser = "latest"

0 comments on commit 7695a84

Please sign in to comment.