Commit Graph

3 Commits

Author SHA1 Message Date
Kevin Stillhammer
08807647e7 fix: grant contents:write to validate-release job (#860)
## Problem

The release workflow fails at the `validate-release` job because `gh
release view` cannot find draft releases. This is because the job only
has `contents: read` permission, but GitHub requires `contents: write`
to view draft releases.

See failed run:
https://github.com/astral-sh/setup-uv/actions/runs/24528604608

## Fix

Bump `validate-release` job permissions from `contents: read` to
`contents: write`, matching the `release` job which already has this
permission.
2026-04-16 21:58:54 +02:00
Zanie Blue
717d6aba0f Add a release-gate step to the release workflow (#859) 2026-04-16 20:56:58 +02:00
Zanie Blue
7b222e12b6 Add a release workflow (#839)
Uses a release workflow with environment protection for publishing
releases instead of relying on user invocation.

The `release` environment can then be protected, e.g., requiring
approval from another team member. We can add a tag ruleset to prevent
tags from being created outside of the `release` environment.

I've never used Release drafter, but the workflow here differs from our
other projects in that the release process just marks the draft release
as final and adds the tag. The draft release is required, for
simplicity.
2026-04-07 08:39:52 -05:00