Files
iris-context/.goreleaser.yaml
T
VERSE a93a31ab4e fix(ci): nightly tags breaking release changelogs (#126)
After released v0.5.0, I saw that v0.5.0 showed only 1 commit changelog
instead of the real 16 commits since v0.4.21

Nightly builds tag every push to main, so a nightly tag can land on the
exact same commit as a stable release tag
GoReleaser picked that nearby nightly as the `previous release` when
building the changelog

Fixes:

- `.goreleaser.yaml`: added `git.ignore_tags`: ["*-nightly.*"] so
changelog diffing skips nightly tags entirely
- `nightly.yml`: the cleanup step deleted a tag named `nightly`, but
each run tags as `v<version>-nightly.<sha>`, so it never actually
deleted anything and nightly tags piled up unbounded. Now deletes all
previous `v*-nightly.*` tags/releases before creating the new one
2026-08-06 10:43:06 +07:00

79 lines
2.1 KiB
YAML

version: 2
project_name: iris
git:
# nightly tags share the version stream and can land on the same commit
# as a stable tag, which would make goreleaser diff the changelog against
# a nightly instead of the real previous stable release
ignore_tags:
- "*-nightly.*"
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64
ldflags:
- -s -w -X github.com/versenilvis/iris/root.Version={{.Version}}
flags:
- -trimpath
main: ./cmd/iris
binary: iris
archives:
- format: tar.gz
name_template: >-
{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}
checksum:
name_template: "checksums.txt"
algorithm: sha256
release:
extra_files:
- glob: ./iris-*-vendor.tar.gz
- glob: ./iris-*-vendor.tar.gz.sha256
footer: |
## Update
```bash
iris update
```
# Homebrew
brews:
- repository:
owner: versenilvis
name: homebrew-iris
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
directory: Formula
homepage: "https://github.com/versenilvis/iris"
description: "A highly customizable, blazing fast and context-aware CLI autocomplete/navigation tool"
license: "MIT"
caveats: |
To completely remove IRIS configurations and shell hooks,
please run 'iris uninstall' BEFORE removing this package, or manually
clean up ~/.config/iris and your shell RC files (e.g. ~/.zshrc).
test: |
system "#{bin}/iris", "--help"
# Debian/RPM
nfpms:
- id: iris
package_name: iris
vendor: "versenilvis"
homepage: "https://github.com/versenilvis/iris"
maintainer: "VERSE <sunnyone0901@gmail.com>"
description: "A highly customizable, blazing fast and context-aware CLI autocomplete/navigation tool"
license: "MIT"
file_name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
scripts:
preremove: "scripts/prerm.sh"
formats:
- deb
- rpm
bindir: /usr/bin