Skip to content

Scope release workflow globs to build artifacts - #111

Merged
randileeharper merged 1 commit into
mainfrom
fix/release-artifact-glob
Jun 28, 2026
Merged

Scope release workflow globs to build artifacts#111
randileeharper merged 1 commit into
mainfrom
fix/release-artifact-glob

Conversation

@randileeharper

Copy link
Copy Markdown
Owner

Summary

The v0.1.0 release published correctly but included a stray default.gitignore (1 byte) asset. Cause: uv build writes a dist/.gitignore (containing *) to keep its output directory clean, and the dist/* glob in both upload-artifact and action-gh-release picked it up.

Fix

Scope both globs to the actual build artifacts — dist/*.whl and dist/*.tar.gz — so the .gitignore is never attached.

Cleanup already done

The stray default.gitignore was deleted from the published v0.1.0 release, which now contains only the two correct artifacts:

  • vesper-0.1.0-py3-none-any.whl
  • vesper-0.1.0.tar.gz

This PR prevents recurrence on future releases.

Verification

  • YAML validated locally.

`uv build` writes a `dist/.gitignore` (containing `*`) to keep its output
directory clean; the previous `dist/*` glob attached it to the GitHub
Release as a stray `default.gitignore` asset. Target `dist/*.whl` and
`dist/*.tar.gz` explicitly in both the upload-artifact and gh-release steps
so only the real build artifacts ship.
@randileeharper
randileeharper merged commit 18e1d07 into main Jun 28, 2026
1 check passed
@randileeharper
randileeharper deleted the fix/release-artifact-glob branch June 28, 2026 22:55
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