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
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ jobs:
uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
- name: Check formatting
run: test -z "$(gofmt -l .)" || { gofmt -l .; exit 1; }
- name: Vet
run: go vet ./...
- name: Test
run: go test ./...
- name: Install just
uses: extractions/setup-just@v4
- name: Install goreleaser
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Release
on:
push:
tags:
- '*'
- '[0-9]+.[0-9]+.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+'

permissions:
contents: write
Expand Down
6 changes: 3 additions & 3 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ or `dpkg-deb` invocation). `justfile` wraps the `goreleaser` CLI so `just <targe
local entry point. `mdview.1.md` (man page source) and `snap/` (built separately via `just snap`,
outside goreleaser) round out packaging.

`.github/workflows/release.yml` triggers on tag push, runs `just release`, and publishes a draft
`.github/workflows/release.yml` triggers on a semver tag push (`1.2.3` or `v1.2.3`), runs `just release`, and publishes a draft
GitHub release (goreleaser reads the version straight from the pushed git tag — no more
previous-tag lookup step). `.github/workflows/build.yml` runs `just build` (a `goreleaser build
--snapshot`) on every push as a CI sanity check (no tests to run).
previous-tag lookup step). `.github/workflows/build.yml` runs on every push: a `gofmt -l` check, `go vet ./...`,
`go test ./...`, then `just build` (a `goreleaser build --snapshot`).
Loading