version: 2
before:
hooks:
- go mod tidy
- go test ./...
builds:
- main: ./cmd/workflowy
binary: workflowy
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
ldflags:
- -s -w
- -X main.version={{.Version}}
- -X main.commit={{.Commit}}
- -X main.date={{.Date}}
archives:
- formats: [ tar.gz ]
name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
format_overrides:
- goos: windows
formats: [ zip ]
checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^chore:'
- '^ci:'
brews:
- name: workflowy-cli
repository:
owner: mholzen
name: homebrew-workflowy
token: "{{ .Env.GITHUB_TOKEN }}"
directory: Formula
homepage: "https://github.com/mholzen/workflowy"
description: "CLI for Workflowy with crud operations and usage reports"
license: "MIT"
test: |
system "#{bin}/workflowy version"
install: |
bin.install "workflowy"
scoops:
- name: workflowy
repository:
owner: mholzen
name: scoop-workflowy
token: "{{ .Env.GITHUB_TOKEN }}"
homepage: "https://github.com/mholzen/workflowy"
description: "MCP server & CLI for Workflowy - search, bulk replace, reports, offline access"
license: "MIT"