Skip to content

Add a workflow to publish versions to another repository#17648

Merged
zanieb merged 1 commit intomainfrom
zb/publish-versions
Jan 29, 2026
Merged

Add a workflow to publish versions to another repository#17648
zanieb merged 1 commit intomainfrom
zb/publish-versions

Conversation

@zanieb
Copy link
Member

@zanieb zanieb commented Jan 21, 2026

This is loosely a copy of the publish-docs workflow. It uses https://github.com/astral-sh/versions/blob/main/scripts/publish-version.py to add the latest version in the cargo dist plan to that repository.

needs:
- plan
- announce
uses: ./.github/workflows/publish-versions.yml

Check warning

Code scanning / zizmor

secrets unconditionally inherited by called workflow Warning

secrets unconditionally inherited by called workflow
@zanieb zanieb force-pushed the zb/publish-versions branch from 0005b42 to 6a13573 Compare January 21, 2026 22:11
@zanieb zanieb changed the title Add a workflow to publish versions to a third-party repository Add a workflow to publish versions to another repository Jan 21, 2026
@zanieb zanieb force-pushed the zb/publish-versions branch from 6a13573 to 66e52c4 Compare January 21, 2026 22:20
@zanieb zanieb force-pushed the zb/publish-versions branch from 66e52c4 to 48e220a Compare January 21, 2026 22:25
@zanieb zanieb marked this pull request as ready for review January 26, 2026 23:53
@zanieb zanieb added the internal A refactor or improvement that is not user-facing label Jan 26, 2026
@zanieb zanieb requested a review from Gankra January 27, 2026 13:23
@zanieb zanieb merged commit 29b59d6 into main Jan 29, 2026
50 checks passed
@zanieb zanieb deleted the zb/publish-versions branch January 29, 2026 19:50
zanieb added a commit to astral-sh/python-build-standalone that referenced this pull request Jan 30, 2026
zanieb added a commit that referenced this pull request Feb 4, 2026
zanieb added a commit to astral-sh/ruff that referenced this pull request Feb 5, 2026
zanieb added a commit that referenced this pull request Feb 11, 2026
…ormat` (#17651)

I'm picking up some pretty old work here prompted by
astral-sh/setup-uv#737 and a desire to be able
to fetch newer `python-build-standalone` versions.

Previously, we only supported a static version which means we can
construct a known GitHub asset URL trivially. However, to support the
"latest" version or version constraints, we need a registry with
metadata. The GitHub API is notoriously rate limited, so we don't want
to use that. It'd be great to use PyPI (and more broadly, the resolver),
but I don't want to introduce it in this code path yet. Instead, this
hits https://github.com/astral-sh/versions in order to determine the
available versions. We stream the NDJSON line by line to avoid
downloading the whole file in order to read one version.

Loosely requires #17648 to reach
production and be ported to `ruff`, though it's not a blocker.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal A refactor or improvement that is not user-facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant