Skip to content

fix: prevent build zip artifacts from leaking into main#15

Merged
TMHSDigital merged 1 commit into
mainfrom
fix/zip-leak-into-main-dtd55
Apr 26, 2026
Merged

fix: prevent build zip artifacts from leaking into main#15
TMHSDigital merged 1 commit into
mainfrom
fix/zip-leak-into-main-dtd55

Conversation

@TMHSDigital
Copy link
Copy Markdown
Owner

Fixes the regression where Unity's release pipeline leaks the build zip into main on every release.

What changed

  • Adds *.zip to .gitignore
  • Removes unity-developer-tools-v1.4.3.zip and unity-developer-tools-v1.4.4.zip from main (the two artifacts that landed since DTD#51)
  • Does NOT touch release.yml. The Build plugin zip step continues to run and the softprops/action-gh-release@v2 step continues to attach the zip to the GitHub Release.

Root cause

DTD#51 fix flipped the bump-commit step from selective git add (which incidentally excluded the zip) to git add -A (which stages everything in the working tree, including the zip). The .gitignore rule is the structural fix that eliminates the latent coupling permanently.

Verification

After merge, the next Unity release should:

  1. Build the zip in the working tree
  2. Attach it to the GitHub Release (release-asset path, unchanged)
  3. NOT include the zip in the bump commit (the .gitignore rule excludes it from git add -A)
  4. Continue to include CLAUDE.md and ROADMAP.md edits in the bump commit (the original DTD#51 intent, preserved)

CFX-Developer-Tools is unaffected (no zip-build step in CFX's release.yml).

Closes TMHSDigital/Developer-Tools-Directory#55.

Closes DTD#55. Adds *.zip to .gitignore and removes the two existing zip
artifacts (unity-developer-tools-v1.4.3.zip, unity-developer-tools-v1.4.4.zip)
that landed in main after the DTD#51 fix flipped release.yml's bump-commit
step from selective `git add` to `git add -A`.

The selective add was incidentally protecting main from the zip artifact
created by the Build plugin zip step; the structural fix is the .gitignore
rule, which makes the artifact invisible to git regardless of the git add
shape used. Release assets continue to receive the zip via
softprops/action-gh-release@v2 as before.

Made-with: Cursor
@TMHSDigital TMHSDigital merged commit 53e5604 into main Apr 26, 2026
12 checks passed
@TMHSDigital TMHSDigital deleted the fix/zip-leak-into-main-dtd55 branch April 26, 2026 20:13
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.

Unity release.yml leaks build zip into main after DTD#51 fix (regression)

1 participant