Skip to content

ci(kiro-extension): attach VSIX files to a GitHub Release - #38

Merged
AlleyBo55 merged 1 commit into
masterfrom
kiro/extension-release-assets
Jul 28, 2026
Merged

AlleyBo55 merged 1 commit into
masterfrom
kiro/extension-release-assets

Conversation

@AlleyBo55

Copy link
Copy Markdown
Owner

The workflow only produced upload-artifact bundles, which expire after 90 days and require a GitHub login to download. That is fine for CI plumbing and useless as a distribution channel, so a tagged build now creates a real Release and attaches every platform's VSIX to it.

The Release is created as a draft. Each platform attaches its own file the moment it is packaged, keeping the per-platform independence the rest of the workflow is built around, and the universal job flips the draft public as its last step. Since that job only runs once all four platforms succeeded, reaching it is the signal the release is complete: if any platform fails the release stays a draft, visible to maintainers and not to users.

All four jobs race to create the same Release. Three of them are expected to lose, so the create is tolerant of failure and followed by a short poll, because the winner is not visible to the others instantly.

Also spells out the environment-secret trap in the publish guard. A secret added under Settings > Environments is only visible to a job declaring environment:, which this job deliberately does not, since an environment carrying protection rules would gate every pull request build too. The old message said "add it in repository settings" and gave no hint why an already-added secret was arriving empty.

Verified: YAML parses, every run: block parses under bash -n, and the release-notes heredoc was executed to confirm it dedents to flush-left markdown so the platform table renders. The tag-gated steps themselves are unexercised until a real tag is pushed.

The workflow only produced upload-artifact bundles, which expire after 90
days and require a GitHub login to download. That is fine for CI plumbing
and useless as a distribution channel, so a tagged build now creates a
real Release and attaches every platform's VSIX to it.

The Release is created as a draft. Each platform attaches its own file the
moment it is packaged, keeping the per-platform independence the rest of
the workflow is built around, and the universal job flips the draft public
as its last step. Since that job only runs once all four platforms
succeeded, reaching it is the signal the release is complete: if any
platform fails the release stays a draft, visible to maintainers and not
to users.

All four jobs race to create the same Release. Three of them are expected
to lose, so the create is tolerant of failure and followed by a short
poll, because the winner is not visible to the others instantly.

Also spells out the environment-secret trap in the publish guard. A secret
added under Settings > Environments is only visible to a job declaring
`environment:`, which this job deliberately does not, since an environment
carrying protection rules would gate every pull request build too. The old
message said "add it in repository settings" and gave no hint why an
already-added secret was arriving empty.

Verified: YAML parses, every run: block parses under bash -n, and the
release-notes heredoc was executed to confirm it dedents to flush-left
markdown so the platform table renders. The tag-gated steps themselves are
unexercised until a real tag is pushed.
@AlleyBo55
AlleyBo55 merged commit 6064af7 into master Jul 28, 2026
5 checks passed
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.

1 participant