Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: goreleaser

on:
push:
tags:
- "v*"

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_PAT: ${{ secrets.GH_PAT }}

61 changes: 61 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
version: 2

before:
hooks:
- go mod tidy

builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
main: ./main.go
binary: ws
ldflags:
- -s -w -X main.version={{.Version}}

archives:
- format: tar.gz
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
format_overrides:
- goos: windows
format: zip

brews:
- repository:
owner: zmoog
name: homebrew-ws
token: "{{ .Env.GH_PAT }}"
directory: Casks

Copilot AI Nov 10, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The directory: Casks is incorrect for a CLI tool. Casks are for GUI applications or binaries requiring special installation locations. For CLI tools installed via brew install, this should either be removed (defaults to Formula) or explicitly set to Formula. The current configuration will create a formula in the wrong directory.

Suggested change
directory: Casks

Copilot uses AI. Check for mistakes.
homepage: "https://github.com/zmoog/ws"
description: "CLI tool and Go library to interact with Wavin Sentio floor heating systems"
license: "MIT"
install: |
bin.install "ws"
test: |
system "#{bin}/ws", "--version"

checksum:
name_template: 'checksums.txt'

snapshot:
version_template: "{{ incpatch .Version }}-next"

changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'

8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ CLI tool and Go library to interact with Wavin Sentio floor heating systems.

## Installation

### Homebrew (macOS and Linux)

```sh
brew install zmoog/ws/ws
```

### Go Install

```sh
go install github.com/zmoog/ws/v2@latest
```
Expand Down