Skip to content

ci(packaging): clean stale bundle output before building installers - #121

Merged
CameronBrooks11 merged 1 commit into
mainfrom
ci/packaging-clean-stale-bundles
Jun 24, 2026
Merged

CameronBrooks11 merged 1 commit into
mainfrom
ci/packaging-clean-stale-bundles

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

What

Stop the packaging workflow from attaching stale prior-version installers to new releases. Fixes #120.

Root cause

.github/actions/setup-rust/action.yml caches the whole target/ dir (keyed on Cargo.lock). That cache includes target/release/bundle/, where Tauri writes version-stamped installer filenames. The build never pruned that directory, so installers accumulated across release runs, and the version-agnostic upload globs (bundle/msi/*.msi, bundle/nsis/*.exe, …) attached every accumulated version to each new release.

This had polluted 10 of 13 releases (40 stale assets total) — cleaned up manually; this PR prevents recurrence.

Fix

Add a Clean stale bundle output step that runs rm -rf src-tauri/target/release/bundle before npm run package, so only the current build's artifacts exist when the upload step globs them. Minimal and root-cause: it breaks the accumulation cycle without disabling the compile cache (only the final bundle/ dir is removed; compiled deps in target/ are untouched, so build speed is preserved).

Verification

Closes #120

The setup-rust action caches the whole target/ directory, keyed on Cargo.lock.
That cache includes target/release/bundle/, where Tauri writes version-stamped
installer filenames (FiberPath.GUI_<ver>_*.{msi,exe,dmg,deb,AppImage}). The
build never pruned that directory, so installers accumulated across release
runs, and the version-agnostic upload globs attached every accumulated version
to each new release.

Remove src-tauri/target/release/bundle before `npm run package` so only the
current build's artifacts exist when the upload step globs them. This breaks
the accumulation cycle at the source without disabling the compile cache.

Closes #120
@CameronBrooks11 CameronBrooks11 added tauri Pull requests that update Tauri code ci Pull requests that update CI/CD workflows labels Jun 24, 2026
@CameronBrooks11
CameronBrooks11 merged commit 80cc0fd into main Jun 24, 2026
21 checks passed
@CameronBrooks11
CameronBrooks11 deleted the ci/packaging-clean-stale-bundles branch June 24, 2026 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Pull requests that update CI/CD workflows tauri Pull requests that update Tauri code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Release packaging attaches stale prior-version installers to new releases

1 participant