You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Composite action that creates a draft GitHub release for a Python project.
Reads the project version from the triggering tag (or an explicit input),
generates release notes from the CHANGELOG and git log, and uploads any artifacts provided.
Inputs
Input
Default
Description
token
required
Token used to create the release. PAT recommended so the release can fire downstream workflows.
tag
$GITHUB_REF_NAME
Tag to release. Defaults to the tag that triggered the workflow.
files
empty
Newline-separated globs of artifact files to attach.
changelog-script
empty
Optional Python script invoked via uv run whose stdout is used as the changelog section.
changelog-path
CHANGELOG.md
CHANGELOG to extract the latest section from when no script is set.
release-template
.github/release_template.md
Where to write the assembled release notes.
draft
true
Create the release as a draft.
prerelease
false
Mark the release as a pre-release.
Outputs
Output
Description
version
Version (no v prefix).
tag
Git tag released.
Behaviour
Resolves the target tag and exports PROJECT_VERSION/PROJECT_TAG for the
rest of the job.
Writes release notes to release-template with sections Changelog (from
changelog-script if provided, else the latest section of the CHANGELOG) and Commits (from git log <previous-tag>..<tag>).
Calls softprops/action-gh-release@v2 to create the release.