1
0
mirror of https://github.com/stryan/mumble-discord-bridge.git synced 2024-11-22 21:35:44 -05:00

chore: build improvements

This commit is contained in:
Tyler Stiene 2021-12-15 00:07:04 -05:00
parent f520fc67c7
commit 07ee7b36c5
3 changed files with 10 additions and 4 deletions

View File

@ -28,7 +28,7 @@ jobs:
run: go install github.com/google/go-licenses@latest
- name: go-license save
run: go-licenses save ./cmd/mumble-discord-bridge --force --save_path="./dist/LICENSES"
run: go-licenses save ./cmd/mumble-discord-bridge --force --save_path="./LICENSES"
- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9

View File

@ -45,6 +45,9 @@ checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
release:
extra_files:
- glob: "./LICENSES/*"
changelog:
sort: asc
filters:

View File

@ -1,8 +1,11 @@
GOFILES=$(shell find ./ -type f -name '*.go')
mumble-discord-bridge: $(GOFILES) .goreleaser.yml
goreleaser build --skip-validate --rm-dist --single-target --snapshot
go-licenses save ./cmd/mumble-discord-bridge --force --save_path="./dist/LICENSES"
goreleaser build --skip-validate --rm-dist --single-target --auto-snapshot
release:
go-licenses save ./cmd/mumble-discord-bridge --force --save_path="./LICENSES"
goreleaser release --rm-dist
dev: $(GOFILES) .goreleaser.yml
goreleaser build --skip-validate --rm-dist --single-target --snapshot && sudo ./dist/mumble-discord-bridge_linux_amd64/mumble-discord-bridge
@ -32,4 +35,4 @@ docker-next:
clean:
rm -f mumble-discord-bridge
.PHONY: docker-latest docker-latest-push clean
.PHONY: release docker-latest docker-latest-push clean