Skip to content

Commit

Permalink
add files
Browse files Browse the repository at this point in the history
  • Loading branch information
laureanray committed Jun 14, 2022
1 parent ef5e1d5 commit 16c37b9
Show file tree
Hide file tree
Showing 21 changed files with 169 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
1 change: 1 addition & 0 deletions dist/artifacts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"name":"libgen-api","path":"/Users/laureanray.bahala/Projects/genread-api/dist/libgen-api_darwin_amd64_v1/libgen-api","goos":"darwin","goarch":"amd64","goamd64":"v1","type":"Binary","extra":{"Binary":"libgen-api","Ext":"","ID":"libgen-api"}},{"name":"libgen-api","path":"/Users/laureanray.bahala/Projects/genread-api/dist/libgen-api_linux_386/libgen-api","goos":"linux","goarch":"386","type":"Binary","extra":{"Binary":"libgen-api","Ext":"","ID":"libgen-api"}},{"name":"libgen-api.exe","path":"/Users/laureanray.bahala/Projects/genread-api/dist/libgen-api_windows_386/libgen-api.exe","goos":"windows","goarch":"386","type":"Binary","extra":{"Binary":"libgen-api","Ext":".exe","ID":"libgen-api"}},{"name":"libgen-api","path":"/Users/laureanray.bahala/Projects/genread-api/dist/libgen-api_linux_amd64_v1/libgen-api","goos":"linux","goarch":"amd64","goamd64":"v1","type":"Binary","extra":{"Binary":"libgen-api","Ext":"","ID":"libgen-api"}},{"name":"libgen-api","path":"/Users/laureanray.bahala/Projects/genread-api/dist/libgen-api_linux_arm64/libgen-api","goos":"linux","goarch":"arm64","type":"Binary","extra":{"Binary":"libgen-api","Ext":"","ID":"libgen-api"}},{"name":"libgen-api.exe","path":"/Users/laureanray.bahala/Projects/genread-api/dist/libgen-api_windows_arm64/libgen-api.exe","goos":"windows","goarch":"arm64","type":"Binary","extra":{"Binary":"libgen-api","Ext":".exe","ID":"libgen-api"}},{"name":"libgen-api.exe","path":"/Users/laureanray.bahala/Projects/genread-api/dist/libgen-api_windows_amd64_v1/libgen-api.exe","goos":"windows","goarch":"amd64","goamd64":"v1","type":"Binary","extra":{"Binary":"libgen-api","Ext":".exe","ID":"libgen-api"}},{"name":"libgen-api","path":"/Users/laureanray.bahala/Projects/genread-api/dist/libgen-api_darwin_arm64/libgen-api","goos":"darwin","goarch":"arm64","type":"Binary","extra":{"Binary":"libgen-api","Ext":"","ID":"libgen-api"}},{"name":"libgen-api_0.0.1-next_Linux_i386.tar.gz","path":"dist/libgen-api_0.0.1-next_Linux_i386.tar.gz","goos":"linux","goarch":"386","type":"Archive","extra":{"Binaries":["libgen-api"],"Builds":[{"name":"libgen-api","path":"/Users/laureanray.bahala/Projects/genread-api/dist/libgen-api_linux_386/libgen-api","goos":"linux","goarch":"386","type":"Binary","extra":{"Binary":"libgen-api","Ext":"","ID":"libgen-api"}}],"Format":"tar.gz","ID":"default","Replaces":null,"WrappedIn":""}},{"name":"libgen-api_0.0.1-next_Windows_i386.tar.gz","path":"dist/libgen-api_0.0.1-next_Windows_i386.tar.gz","goos":"windows","goarch":"386","type":"Archive","extra":{"Binaries":["libgen-api.exe"],"Builds":[{"name":"libgen-api.exe","path":"/Users/laureanray.bahala/Projects/genread-api/dist/libgen-api_windows_386/libgen-api.exe","goos":"windows","goarch":"386","type":"Binary","extra":{"Binary":"libgen-api","Ext":".exe","ID":"libgen-api"}}],"Format":"tar.gz","ID":"default","Replaces":null,"WrappedIn":""}},{"name":"libgen-api_0.0.1-next_Windows_arm64.tar.gz","path":"dist/libgen-api_0.0.1-next_Windows_arm64.tar.gz","goos":"windows","goarch":"arm64","type":"Archive","extra":{"Binaries":["libgen-api.exe"],"Builds":[{"name":"libgen-api.exe","path":"/Users/laureanray.bahala/Projects/genread-api/dist/libgen-api_windows_arm64/libgen-api.exe","goos":"windows","goarch":"arm64","type":"Binary","extra":{"Binary":"libgen-api","Ext":".exe","ID":"libgen-api"}}],"Format":"tar.gz","ID":"default","Replaces":null,"WrappedIn":""}},{"name":"libgen-api_0.0.1-next_Linux_arm64.tar.gz","path":"dist/libgen-api_0.0.1-next_Linux_arm64.tar.gz","goos":"linux","goarch":"arm64","type":"Archive","extra":{"Binaries":["libgen-api"],"Builds":[{"name":"libgen-api","path":"/Users/laureanray.bahala/Projects/genread-api/dist/libgen-api_linux_arm64/libgen-api","goos":"linux","goarch":"arm64","type":"Binary","extra":{"Binary":"libgen-api","Ext":"","ID":"libgen-api"}}],"Format":"tar.gz","ID":"default","Replaces":null,"WrappedIn":""}},{"name":"libgen-api_0.0.1-next_Darwin_arm64.tar.gz","path":"dist/libgen-api_0.0.1-next_Darwin_arm64.tar.gz","goos":"darwin","goarch":"arm64","type":"Archive","extra":{"Binaries":["libgen-api"],"Builds":[{"name":"libgen-api","path":"/Users/laureanray.bahala/Projects/genread-api/dist/libgen-api_darwin_arm64/libgen-api","goos":"darwin","goarch":"arm64","type":"Binary","extra":{"Binary":"libgen-api","Ext":"","ID":"libgen-api"}}],"Format":"tar.gz","ID":"default","Replaces":null,"WrappedIn":""}},{"name":"libgen-api_0.0.1-next_Linux_x86_64.tar.gz","path":"dist/libgen-api_0.0.1-next_Linux_x86_64.tar.gz","goos":"linux","goarch":"amd64","goamd64":"v1","type":"Archive","extra":{"Binaries":["libgen-api"],"Builds":[{"name":"libgen-api","path":"/Users/laureanray.bahala/Projects/genread-api/dist/libgen-api_linux_amd64_v1/libgen-api","goos":"linux","goarch":"amd64","goamd64":"v1","type":"Binary","extra":{"Binary":"libgen-api","Ext":"","ID":"libgen-api"}}],"Format":"tar.gz","ID":"default","Replaces":null,"WrappedIn":""}},{"name":"libgen-api_0.0.1-next_Windows_x86_64.tar.gz","path":"dist/libgen-api_0.0.1-next_Windows_x86_64.tar.gz","goos":"windows","goarch":"amd64","goamd64":"v1","type":"Archive","extra":{"Binaries":["libgen-api.exe"],"Builds":[{"name":"libgen-api.exe","path":"/Users/laureanray.bahala/Projects/genread-api/dist/libgen-api_windows_amd64_v1/libgen-api.exe","goos":"windows","goarch":"amd64","goamd64":"v1","type":"Binary","extra":{"Binary":"libgen-api","Ext":".exe","ID":"libgen-api"}}],"Format":"tar.gz","ID":"default","Replaces":null,"WrappedIn":""}},{"name":"libgen-api_0.0.1-next_Darwin_x86_64.tar.gz","path":"dist/libgen-api_0.0.1-next_Darwin_x86_64.tar.gz","goos":"darwin","goarch":"amd64","goamd64":"v1","type":"Archive","extra":{"Binaries":["libgen-api"],"Builds":[{"name":"libgen-api","path":"/Users/laureanray.bahala/Projects/genread-api/dist/libgen-api_darwin_amd64_v1/libgen-api","goos":"darwin","goarch":"amd64","goamd64":"v1","type":"Binary","extra":{"Binary":"libgen-api","Ext":"","ID":"libgen-api"}}],"Format":"tar.gz","ID":"default","Replaces":null,"WrappedIn":""}},{"name":"checksums.txt","path":"dist/checksums.txt","type":"Checksum","extra":{"Refresh":"func() error"}}]
8 changes: 8 additions & 0 deletions dist/checksums.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
09fa443f34f08d66cd8343e9970d13254f1b98c7feac73a371bfcf965e999bb5 libgen-api_0.0.1-next_Windows_arm64.tar.gz
0b750a936de77212ce29101e3aa5da9b4ee8b4d2f2aaf554817ad15b84d56ca5 libgen-api_0.0.1-next_Darwin_arm64.tar.gz
624daefeafd0e8b9a6a9940cb930fdfbbba3d777fc9555f6084bb985c9ff0f2a libgen-api_0.0.1-next_Darwin_x86_64.tar.gz
6da8f8860d6e2586b0ea8f580e88780f84fcd737ba801ac7c885055512c7d0ad libgen-api_0.0.1-next_Windows_i386.tar.gz
94211f7efbfde7a1f67defef2a435a65ea734e73a8ac64e97616b140cd74cd86 libgen-api_0.0.1-next_Linux_x86_64.tar.gz
ae44ae50d5f511383b24271c65c906c365058d695cd5f60959aff0560c005c14 libgen-api_0.0.1-next_Linux_i386.tar.gz
b8a1273f20c33c3a58558b7d8fb2fb9b5d6af76fd401b9ceb953c7ebd857a4fc libgen-api_0.0.1-next_Linux_arm64.tar.gz
d8165edcb0e5287703074c4cf28fb32a9c6c4d9df56eb9c62f21ab046239f7f5 libgen-api_0.0.1-next_Windows_x86_64.tar.gz
127 changes: 127 additions & 0 deletions dist/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
project_name: libgen-api
release:
github:
owner: laureanray
name: libgen-api
name_template: '{{.Tag}}'
scoop:
name: libgen-api
commit_author:
name: goreleaserbot
email: [email protected]
commit_msg_template: Scoop update for {{ .ProjectName }} version {{ .Tag }}
goamd64: v1
builds:
- id: libgen-api
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
- "386"
goarm:
- "6"
gomips:
- hardfloat
goamd64:
- v1
targets:
- linux_amd64_v1
- linux_arm64
- linux_386
- windows_amd64_v1
- windows_arm64
- windows_386
- darwin_amd64_v1
- darwin_arm64
dir: .
main: .
binary: libgen-api
env:
- CGO_ENABLED=0
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: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
replacements:
"386": i386
amd64: x86_64
darwin: Darwin
linux: Linux
windows: Windows
format: tar.gz
files:
- src: license*
- src: LICENSE*
- src: readme*
- src: README*
- src: changelog*
- src: CHANGELOG*
snapshot:
name_template: '{{ incpatch .Version }}-next'
checksum:
name_template: checksums.txt
algorithm: sha256
changelog:
filters:
exclude:
- '^docs:'
- '^test:'
sort: asc
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
- go generate ./...
source:
name_template: '{{ .ProjectName }}-{{ .Version }}'
format: tar.gz
gomod:
gobinary: go
announce:
twitter:
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
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: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
webhook:
message_template: '{ "message": "{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}"}'
content_type: application/json; charset=utf-8
github_urls:
download: https://github.com
gitlab_urls:
download: https://gitlab.com
Binary file added dist/libgen-api_0.0.1-next_Darwin_arm64.tar.gz
Binary file not shown.
Binary file added dist/libgen-api_0.0.1-next_Darwin_x86_64.tar.gz
Binary file not shown.
Binary file added dist/libgen-api_0.0.1-next_Linux_arm64.tar.gz
Binary file not shown.
Binary file added dist/libgen-api_0.0.1-next_Linux_i386.tar.gz
Binary file not shown.
Binary file added dist/libgen-api_0.0.1-next_Linux_x86_64.tar.gz
Binary file not shown.
Binary file added dist/libgen-api_0.0.1-next_Windows_arm64.tar.gz
Binary file not shown.
Binary file added dist/libgen-api_0.0.1-next_Windows_i386.tar.gz
Binary file not shown.
Binary file added dist/libgen-api_0.0.1-next_Windows_x86_64.tar.gz
Binary file not shown.
Binary file added dist/libgen-api_darwin_amd64_v1/libgen-api
Binary file not shown.
Binary file added dist/libgen-api_darwin_arm64/libgen-api
Binary file not shown.
Binary file added dist/libgen-api_linux_386/libgen-api
Binary file not shown.
Binary file added dist/libgen-api_linux_amd64_v1/libgen-api
Binary file not shown.
Binary file added dist/libgen-api_linux_arm64/libgen-api
Binary file not shown.
Binary file added dist/libgen-api_windows_386/libgen-api.exe
Binary file not shown.
Binary file added dist/libgen-api_windows_amd64_v1/libgen-api.exe
Binary file not shown.
Binary file added dist/libgen-api_windows_arm64/libgen-api.exe
Binary file not shown.
1 change: 1 addition & 0 deletions dist/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"project_name":"libgen-api","tag":"v0.0.0","previous_tag":"","version":"0.0.1-next","commit":"ef5e1d5e6e060c74993a06e13f2855d408e8edab","date":"2022-06-14T13:44:12.600197+08:00","runtime":{"goos":"darwin","goarch":"amd64"}}

0 comments on commit 16c37b9

Please sign in to comment.