Skip to content

Use package version for Winget publish#594

Merged
sathvikkumar-octo merged 2 commits intomainfrom
sk/winget-version
May 1, 2026
Merged

Use package version for Winget publish#594
sathvikkumar-octo merged 2 commits intomainfrom
sk/winget-version

Conversation

@sathvikkumar-octo
Copy link
Copy Markdown
Contributor

Don't use Octopus.Release.Number for the Winget push as it means if there is an error deploying the release we can't easily create a new release to try again and need to delete the old release first.

This brings it inline with the other external repositories we are deploying the CLI to

The winget step previously derived the published version from
Octopus.Release.Number. This breaks if the Octopus release name diverges
from the package version (e.g. a 2.21.0-hotfix1 release containing
octopus-cli@2.21.0). Source the version from the cli package metadata
instead, so the published winget version always matches what's in the
package being deployed.

Adds a non-extracting cli package reference to the winget step to make
PackageVersion available without unzipping the 66 MB package.
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 29, 2026

CLA assistant check
All committers have signed the CLA.

Copy link
Copy Markdown
Contributor

@APErebus APErebus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea!

@sathvikkumar-octo sathvikkumar-octo merged commit b473401 into main May 1, 2026
4 checks passed
@sathvikkumar-octo sathvikkumar-octo deleted the sk/winget-version branch May 1, 2026 00:23
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.

3 participants