fix(release): generate Velopack delta packages#168
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Enables Velopack delta package generation in release builds by downloading the previous release into the packaging output directory before vpk pack. Also adjusts asset cleanup/copy filters to include delta packages and threads GITHUB_TOKEN into the release workflow step for authenticated downloads.
Changes:
- Add
VelopackFeedUrl,GitHubToken, andSkipPreviousReleaseDownloadparameters toPublish-FoundryVelopack.ps1and invokevpk download githubbefore packing. - Extend release-asset cleanup to include
*-delta.nupkgfiles and scope the post-pack copy filter to the currentPackVersion. - Expose
GITHUB_TOKENto theBuild release assetsstep inrelease.yml.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| scripts/Publish-FoundryVelopack.ps1 | Download previous release into $releaseDir so vpk can produce delta packages; update asset filter patterns for delta nupkgs and version-scoped copy. |
| .github/workflows/release.yml | Pass github.token to the release packaging step so the script can authenticate GitHub downloads. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
vpk packcan generate delta packages.GITHUB_TOKENto the release packaging step for authenticated GitHub release downloads.Reason
Velopack only creates delta packages when the previous full package is available in the packaging output directory. The release script cleared that directory before packing, so releases only produced full packages.
Main changes
Publish-FoundryVelopack.ps1.-SkipPreviousReleaseDownloadfor local packaging scenarios that should not prefetch the latest release.GITHUB_TOKENto the release asset build step.Testing notes
scripts/Publish-FoundryVelopack.ps1with the PowerShell parser.git diff --check.26.5.16-build.2; verified full, delta, and MSI outputs.26.5.16-build.2; verified full, delta, and MSI outputs.26.5.15-build.2with-SkipPreviousReleaseDownload.