feat: init

This commit is contained in:
2024-07-28 19:20:01 +02:00
commit 7c6e44ea1c
14 changed files with 922 additions and 0 deletions

1
dist/artifacts.json vendored Normal file
View File

@ -0,0 +1 @@
[{"name":"metadata.json","path":"dist/metadata.json","internal_type":30,"type":"Metadata"},{"name":"rn","path":"dist/rn_linux_amd64_v1/rn","goos":"linux","goarch":"amd64","goamd64":"v1","internal_type":4,"type":"Binary","extra":{"Binary":"rn","Ext":"","ID":"rn"}},{"name":"rn","path":"dist/rn_darwin_amd64_v1/rn","goos":"darwin","goarch":"amd64","goamd64":"v1","internal_type":4,"type":"Binary","extra":{"Binary":"rn","Ext":"","ID":"rn"}},{"name":"rn_0.0.0-SNAPSHOT-none_linux_amd64","path":"dist/rn_linux_amd64_v1/rn","goos":"linux","goarch":"amd64","goamd64":"v1","internal_type":2,"type":"Binary","extra":{"Binary":"rn","Checksum":"sha256:cbca9e0bac7d41317be4a6268f1e767011b5aa0ea400f53b14a563148ca790b3","Format":"binary","ID":"default","Replaces":null}},{"name":"rn_0.0.0-SNAPSHOT-none_darwin_amd64","path":"dist/rn_darwin_amd64_v1/rn","goos":"darwin","goarch":"amd64","goamd64":"v1","internal_type":2,"type":"Binary","extra":{"Binary":"rn","Checksum":"sha256:022a05186b3a15145811a0c1a0391000cf63c8b0dcf12c5584885b7142f235bc","Format":"binary","ID":"default","Replaces":null}},{"name":"rn_0.0.0-SNAPSHOT-none_checksums.txt","path":"dist/rn_0.0.0-SNAPSHOT-none_checksums.txt","internal_type":12,"type":"Checksum","extra":{}}]

107
dist/config.yaml vendored Normal file
View File

@ -0,0 +1,107 @@
version: 2
project_name: rn
release:
name_template: '{{.Tag}}'
builds:
- id: rn
goos:
- linux
- darwin
goarch:
- amd64
goarm:
- "6"
gomips:
- hardfloat
goamd64:
- v1
targets:
- linux_amd64_v1
- darwin_amd64_v1
dir: .
main: .
binary: rn
builder: go
gobinary: go
command: build
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser
archives:
- id: default
name_template: '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
format: binary
files:
- src: license*
- src: LICENSE*
- src: readme*
- src: README*
- src: changelog*
- src: CHANGELOG*
snapshot:
name_template: '{{ .Version }}-SNAPSHOT-{{ .ShortCommit }}'
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt'
algorithm: sha256
changelog:
format: '{{ .SHA }}: {{ .Message }} ({{ with .AuthorUsername }}@{{ . }}{{ else }}{{ .AuthorName }} <{{ .AuthorEmail }}>{{ end }})'
dist: dist
env_files:
github_token: ~/.config/goreleaser/github_token
gitlab_token: ~/.config/goreleaser/gitlab_token
gitea_token: ~/.config/goreleaser/gitea_token
before:
hooks:
- go mod tidy
source:
name_template: '{{ .ProjectName }}-{{ .Version }}'
format: tar.gz
gomod:
gobinary: go
announce:
twitter:
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
mastodon:
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
server: ""
reddit:
title_template: '{{ .ProjectName }} {{ .Tag }} is out!'
url_template: '{{ .ReleaseURL }}'
slack:
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
username: GoReleaser
discord:
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
author: GoReleaser
color: "3888754"
icon_url: https://goreleaser.com/static/avatar.png
teams:
title_template: '{{ .ProjectName }} {{ .Tag }} is out!'
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
color: '#2D313E'
icon_url: https://goreleaser.com/static/avatar.png
smtp:
subject_template: '{{ .ProjectName }} {{ .Tag }} is out!'
body_template: 'You can view details from: {{ .ReleaseURL }}'
mattermost:
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
title_template: '{{ .ProjectName }} {{ .Tag }} is out!'
username: GoReleaser
linkedin:
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
telegram:
message_template: '{{ mdv2escape .ProjectName }} {{ mdv2escape .Tag }} is out{{ mdv2escape "!" }} Check it out at {{ mdv2escape .ReleaseURL }}'
parse_mode: MarkdownV2
webhook:
message_template: '{ "message": "{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}"}'
content_type: application/json; charset=utf-8
opencollective:
title_template: '{{ .Tag }}'
message_template: '{{ .ProjectName }} {{ .Tag }} is out!<br/>Check it out at <a href="{{ .ReleaseURL }}">{{ .ReleaseURL }}</a>'
bluesky:
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
git:
tag_sort: -version:refname
github_urls:
download: https://github.com
gitlab_urls:
download: https://gitlab.com

1
dist/metadata.json vendored Normal file
View File

@ -0,0 +1 @@
{"project_name":"rn","tag":"v0.0.0","previous_tag":"","version":"0.0.0-SNAPSHOT-none","commit":"none","date":"2024-07-28T19:19:34.548216041+02:00","runtime":{"goos":"linux","goarch":"amd64"}}

View File

@ -0,0 +1,2 @@
022a05186b3a15145811a0c1a0391000cf63c8b0dcf12c5584885b7142f235bc rn_0.0.0-SNAPSHOT-none_darwin_amd64
cbca9e0bac7d41317be4a6268f1e767011b5aa0ea400f53b14a563148ca790b3 rn_0.0.0-SNAPSHOT-none_linux_amd64

BIN
dist/rn_darwin_amd64_v1/rn vendored Executable file

Binary file not shown.

BIN
dist/rn_linux_amd64_v1/rn vendored Executable file

Binary file not shown.