Skip to content

Commit

Permalink
Add GoReleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
t94j0 committed Aug 16, 2021
1 parent 43bebdf commit 48fc0ef
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .build/gophish-notifier.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Unit]
Description=gophish-notifier
After=network.target

[Service]
Type=simple
ExecStart=gophish-notifier
PIDFile="/usr/sbin/gophish-notifier"

[Install]
WantedBy=multi-user.target
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

dist/
28 changes: 28 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
before:
hooks:
- go mod tidy
- 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 .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'

0 comments on commit 48fc0ef

Please sign in to comment.