Skip to content

Feat: Enable Chocolatey package distribution (fixes #139)#140

Merged
wkoszek merged 1 commit intomainfrom
issue/139
Nov 25, 2025
Merged

Feat: Enable Chocolatey package distribution (fixes #139)#140
wkoszek merged 1 commit intomainfrom
issue/139

Conversation

@wkoszek
Copy link
Copy Markdown
Contributor

@wkoszek wkoszek commented Nov 25, 2025

Summary

Uncomment Chocolatey configuration in .goreleaser.yaml to enable publishing bsubio to the Chocolatey package repository for Windows users.

Changes

  • Uncomment chocolateys section in .goreleaser.yaml
  • Fix trailing whitespace in description

Installation After Release

Windows users can install with:

choco install bsubio

Package Details

Setup Required

To enable automated Chocolatey publishing:

  1. Create account at https://community.chocolatey.org/
  2. Get API key from account settings
  3. Add CHOCOLATEY_API_KEY secret to GitHub repository settings
  4. On next release, GoReleaser will automatically publish to Chocolatey

How It Works

  • GoReleaser generates .nupkg package
  • Publishes to https://push.chocolatey.org/
  • Package becomes available in Chocolatey repository
  • Users can install via choco install bsubio

Fixes #139

Uncomment Chocolatey configuration in .goreleaser.yaml to enable
publishing bsubio to the Chocolatey package repository for Windows.

Changes:
- Uncomment chocolateys section in .goreleaser.yaml
- Fix trailing whitespace in description

Windows users can install with:
  choco install bsubio

Note: Requires CHOCOLATEY_API_KEY secret to be configured in
GitHub Actions for automated publishing.
@claude
Copy link
Copy Markdown

claude bot commented Nov 25, 2025

Review

Change is straightforward - uncomments Chocolatey config to enable Windows package distribution.

Configuration Issues

Line 175: license_url points to /main/ branch but should use /master/ or verify default branch name.

# Verify default branch
git remote show origin | grep "HEAD branch"

Line 193: api_key from CHOCOLATEY_API_KEY secret - already in workflow at line 174, so automated publishing ready.

Line 194: source_repo URL correct for Chocolatey push.

Security

API key handling secure via GitHub secrets. Skip publish flag removed correctly to enable publishing.

Testing

Before merge:

  1. Verify LICENSE exists at repo root (confirmed)
  2. Confirm CHOCOLATEY_API_KEY secret configured in repo settings
  3. Test goreleaser locally: goreleaser release --snapshot --skip=publish

Minor

Whitespace fix in description (line 186) - good cleanup.

Ship it once branch path verified and secret confirmed.

@wkoszek wkoszek merged commit cbc1130 into main Nov 25, 2025
2 checks passed
@wkoszek wkoszek deleted the issue/139 branch November 25, 2025 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable Chocolatey package distribution

1 participant