Feature/goreleaser :: Added goreleaser.yaml
This commit is contained in:
parent
0c49949a5d
commit
99d1c47f18
3 changed files with 49 additions and 0 deletions
3
Makefile
3
Makefile
|
|
@ -39,4 +39,7 @@ clean:
|
||||||
rm src/$(DNAME) || true
|
rm src/$(DNAME) || true
|
||||||
docker rmi -f $(DUSER)/$(DNAME)
|
docker rmi -f $(DUSER)/$(DNAME)
|
||||||
|
|
||||||
|
release:
|
||||||
|
cd src; curl -sfL https://goreleaser.com/static/run | bash -s -- release
|
||||||
|
|
||||||
dev: docker-build docker-run
|
dev: docker-build docker-run
|
||||||
16
README.md
16
README.md
|
|
@ -69,6 +69,22 @@ SHOUTRRR_URL="gotify://192.168.2.1:8083/AwQqpAae.rrl5Ob/?title=Unknown host dete
|
||||||
THEME="darkly"
|
THEME="darkly"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Releases
|
||||||
|
WatchYourLAN uses goreleaser to generate multi-platform releases.
|
||||||
|
|
||||||
|
Generate a token here: https://github.com/settings/tokens/new
|
||||||
|
|
||||||
|
Add as an environment variable:
|
||||||
|
```shell
|
||||||
|
export GITHUB_TOKEN=<TOKEN GOES HERE>
|
||||||
|
```
|
||||||
|
|
||||||
|
Run goreleaser:
|
||||||
|
```
|
||||||
|
curl -sfL https://goreleaser.com/static/run | bash -s -- release
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Thanks
|
## Thanks
|
||||||
- All go packages listed in [dependencies](https://github.com/aceberg/WatchYourLAN/network/dependencies)
|
- All go packages listed in [dependencies](https://github.com/aceberg/WatchYourLAN/network/dependencies)
|
||||||
- Favicon and logo: [Access point icons created by Freepik - Flaticon](https://www.flaticon.com/free-icons/access-point)
|
- Favicon and logo: [Access point icons created by Freepik - Flaticon](https://www.flaticon.com/free-icons/access-point)
|
||||||
|
|
|
||||||
30
src/.goreleaser.yaml
Normal file
30
src/.goreleaser.yaml
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
# This is an example .goreleaser.yml file with some sensible defaults.
|
||||||
|
# Make sure to check the documentation at https://goreleaser.com
|
||||||
|
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 .Version }}-next"
|
||||||
|
changelog:
|
||||||
|
sort: asc
|
||||||
|
filters:
|
||||||
|
exclude:
|
||||||
|
- '^docs:'
|
||||||
|
- '^test:'
|
||||||
Loading…
Reference in a new issue