-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
57 lines (50 loc) · 1.61 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# .goreleaser.yml
# This is the GoReleaser configuration file which defines how to build, package, and release your application.
project_name: osmon # The name of your project.
# Build section defines how your application should be built.
builds:
- id: osmon
main: . # Path to the main source file or directory of your program.
binary: osmon # Name of the compiled binary.
goos: # List of target operating systems.
- linux
- darwin
goarch: # List of target architectures.
- amd64
- arm64
env: # Environment variables to be set during the build process.
- CGO_ENABLED=0
ldflags: # Flags to pass to the go compiler.
- -s -w
# Archives section defines how to package your binary.
archives:
- id: archive
builds:
- osmon
format: tar.gz # Format for Linux binaries.
format_overrides:
- goos: darwin
format: zip # Format for macOS binaries.
wrap_in_directory: true
files: # Additional files to include in the archive.
- LICENSE
- README.md
# Release section configures how to handle GitHub releases.
release:
github:
owner: debek
name: osmon
draft: true # Indicates whether the release should be a draft.
prerelease: auto # Automatically set whether the release is a prerelease based on the tag.
# Checksum section generates checksums of your binaries.
checksum:
name_template: 'checksums.txt'
# Snapshot section configures the creation of snapshots.
snapshot:
name_template: "{{ .Tag }}-next" # Template for naming snapshot releases.
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'