Skip to content

feat(ci): Add automated Chocolatey publishing to release workflow #37

@rianjs

Description

@rianjs

Summary

Extend the release workflow to automatically publish to Chocolatey on new releases, plus add a manual retry workflow.

Changes

  • Add chocolatey job to .github/workflows/release.yml
  • Create .github/workflows/chocolatey-publish.yml for manual publishing
  • Document CHOCOLATEY_API_KEY secret requirement

Workflow logic

  1. Wait for goreleaser job to complete
  2. Download checksums.txt from release
  3. Extract Windows amd64 and arm64 hashes
  4. Inject checksums into install script (replace placeholders)
  5. Update version in nuspec
  6. Run choco pack
  7. Run choco push with API key

Files to modify/create

  • .github/workflows/release.yml (add chocolatey job)
  • .github/workflows/chocolatey-publish.yml (new)

Required secrets

Secret How to Obtain
CHOCOLATEY_API_KEY https://community.chocolatey.org/account

Acceptance criteria

  • Release workflow includes Chocolatey publishing job
  • Manual workflow allows re-publishing specific versions
  • Package successfully submitted to Chocolatey (may take 1-3 days for initial moderation)

Dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions