Skip to content
Agentmart
Submit a tool

release-setup

Set up automated cross-platform binary releases for a Go project

Skill by joewalnes

IndexedMIT★ 3
Write a review

Chalk Labs

Need help deploying release-setup?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/joewalnes-release-setup

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Set up automated cross-platform binary releases for a Go project

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/release-setup

What's inside

Skill name
release-setup
Description
Set up automated cross-platform binary releases for a Go project
License
MIT
Instructions
223 lines in SKILL.md · view on GitHub

Before installing

  • Instructions call the network

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Release Setup

Set up automated binary releases for a Go CLI project. Every push to main builds and publishes cross-platform binaries. No tags, no manual release steps.

## Prerequisites

Before starting, read the project to determine:
- **Binary name**: from Makefile, go.mod module path, or main package
- **GitHub owner/repo**: from `git remote get-url origin`
- **License**: from LICENSE file
- **Description**: from README.md first line or go.mod comment

Ask the user which platforms to target. Default: macOS ARM, Linux x86_64, Linux ARM. Optional: Windows x86_64.

## Steps

Work through each step, implementing immediately. Show what you're creating and why.

---

### 1. Version variable

The version string format is: `YYYY-MM-DD HH:MM <branch> <short-sha> <dev|release>`

Examples:
- Local build: `2026-04-10 14:22 main fa431a dev`
- CI release: `2026-04-10 14:22 main fa431a release`

**In the source code**, find where the version is defined. Replace any hardcoded version string with a `var` that defaults to `"dev"` and is set at build time via ldflags:

For Go:
```go
// version is set at build time via -ldflags "-X main.version=..."
var version = "dev"
```

For Rust (in build.rs + env!):
```rust
let version = option_env!("BUILD_VERSION").unwrap_or("dev");
```

**In the Makefile** (or equivalent build config), set VERSION and pass it via ldflags:

For Go:
```makefile
VERSION  = $(shell date -u +'%Y-%m-%d %H:%M') $(shell git rev-parse --abbrev-ref HEAD) $(shell git rev-parse --short HEAD) dev
GOFLAGS  = -trimpath -ldflags="-s -w -X 'main.version=$(VERSION)'"
```

If the project has an existing hardcoded version constant, remove it. If there's a `make release` target that manages tags, remove it.

---

### 2. GitHub Actions workflow

Create `.github/workflows/release.yml`:

```yaml
name: Release

on:
  push:
    branches:
      - main

permissions:
  contents: write

jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - uses: actions/setup-go@v5
        with:
          go-version-file: go.mod

      - name: Build binaries
        run: |
          SHA=$(git rev-parse --short HEAD)
          DATE=$(TZ=UTC date +'%Y-%m-%d %H:%M')
          VERSION="${DATE} main ${SHA} release"
          LDFLAGS="-s -w -X 'main.version=${VERSION}'"
          GOOS=darwin  GOARCH=arm64 go build -trimpath -ldflags="$LDFLAGS" -o dist/<BINARY>-darwin-arm64  .
          GOOS=linux   GOARCH=amd64 go build -trimpath -ldflags="$LDFLAGS" -o dist/<BINARY>-linux-amd64  .
          GOOS=linux   GOARCH=arm64 go build -trimpath -ldflags="$LDFLAGS" -o dist/<BINARY>-linux-arm64  .

      - name: Create or update release
        env:
          GH_TOKEN: ${{ github.token }}
        run: |
          gh release delete latest --yes 2>/dev/null || true
          git push origin :refs/tags/latest 2>/dev/null || true
          gh release create latest \
            dist/<BINARY>-darwin-arm64 \
            dist/<BINARY>-linux-amd64 \
            dist/<BINARY>-linux-arm64 \
            --title "Latest" \
            --notes "Built from main at $(git rev-parse --short HEAD)" \
            --latest
```

Replace `<BINARY>` with the actual binary name. If Windows is requested, add:
```yaml
          GOOS=windows GOARCH=amd64 go build -trimpath -ldflags="$LDFLAGS" -o dist/<BINARY>-windows-amd64.exe .
```
and include it in the `gh release create` assets list.

Adapt the setup step for non-Go projects (e.g. `actions/setup-node`, `rustup`, etc.).

---

### 3. Homebrew formula

Check if the user has a homebrew tap repo. Look for `../homebrew-tap` or ask. If they have one, create a formula.

Create `Formula/<binary>.rb` in the tap repo:

From joewalnes/skills, MIT.

More from joewalnes/skills

Signals

Stars
3
Forks
3
Open issues
0
Last commit (this folder)
Apr 10, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from joewalnes

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get release-setup running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying release-setup?

CallGet help
Cite this page

release-setup skill. Agent Mart. https://agentmart.dev/skills/joewalnes-release-setup (last updated 2026-10-24)