From 493b949e72905dea4cec1c48e00c2b14cb078b66 Mon Sep 17 00:00:00 2001 From: Ruslan Date: Wed, 11 Dec 2024 10:24:57 +0200 Subject: [PATCH] minor changes --- .github/workflows/release.yml | 2 +- .goreleaser.yaml | 40 +++++++++++++++++++++++++++++------ Makefile | 5 +---- 3 files changed, 35 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f4b945d..fea0343 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,7 +24,7 @@ jobs: - name: Build and Release uses: goreleaser/goreleaser-action@v6 with: - version: latest + version: '~> v2' args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index da62c78..d17bc36 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,4 +1,4 @@ -version: 1 +version: 2 before: hooks: @@ -34,11 +34,37 @@ archives: - goos: windows format: zip +# brews: +# - repository: +# owner: WittyJudge +# name: homebrew-adless +# directory: Formula +# homepage: https://github.com/WIttyJudge/homebrew-adless +# description: Local domains blocker written in Go +# license: Apache License 2.0 + +# nfpms: +# - id: adless-packages +# file_name_template: >- +# {{ .ProjectName }}_ +# {{- .Tag }}_ +# {{- if eq .Arch "amd64" }}x86_64 +# {{- else if eq .Arch "386" }}i386 +# {{- else }}{{ .Arch }}{{ end }} +# homepage: https://github.com/WIttyJudge/adless +# description: Local domains blocker written in Go +# maintainer: WittyJudge +# license: Apache License 2.0 +# vendor: adless +# formats: +# - deb +# - rpm + changelog: filters: - include: - - "^fix" - - "^feat" - - "^build" - - "^ci" - - "^perf" + exclude: + - '^chore' + - '^docs' + - '^refactor' + - '^style' + - '^test' diff --git a/Makefile b/Makefile index 7bcbc53..d7e9fe6 100644 --- a/Makefile +++ b/Makefile @@ -22,9 +22,6 @@ build: build-linux build-linux: GOOS=linux go build -ldflags "$(LDFLAGS)" -o $(BUILD_PATH) $(SRC_PATH) -build-freebsd: - GOOS=freebsd go build -ldflags "$(LDFLAGS)" -o $(BUILD_PATH).bin $(SRC_PATH) - build-windows: GOOS=windows go build -ldflags "$(LDFLAGS)" -o $(BUILD_PATH).exe $(SRC_PATH) @@ -40,7 +37,7 @@ coverage: clean: rm -rf ${BUILD_PATH} - rm -rf ${BUILD_PATH}.bin rm -rf ${BUILD_PATH}.exe + rm -rf ${BUILD_PATH}.osx rm -rf dist/ rm -f coverage.out coverage.html