Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
WIttyJudge committed Dec 11, 2024
1 parent ea36472 commit 493b949
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
40 changes: 33 additions & 7 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 1
version: 2

before:
hooks:
Expand Down Expand Up @@ -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'
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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

0 comments on commit 493b949

Please sign in to comment.