From a597aef8cdcdba0e7a0be69023abe87bef3b5560 Mon Sep 17 00:00:00 2001 From: beefcarver Date: Sat, 14 Nov 2026 17:05:22 -0500 Subject: [PATCH] ci(release): publish the sdist and wheel with each release --- .forgejo/workflows/release.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index 0e5d0c4..c346502 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -33,6 +33,19 @@ jobs: ) PY + - name: Setup uv + uses: astral-sh/setup-uv@v10.3.3 + + # No `submodules:` on the checkout above, so the tap is empty here and the + # sdist below differs from a local `uv build` with the submodule populated. + # The published asset is therefore the authority: tools/bump_packaging.py + # hashes the download, never a rebuild. + - name: Build the sdist and wheel + run: | + uv build --out-dir dist/release + # PKGBUILD and the tap formula name this exact file. + test -f "dist/release/beefy_player-${FORGEJO_REF_NAME#v}.tar.gz" + - name: Generate release notes run: | previous="$(git describe --tags --abbrev=0 "${FORGEJO_REF_NAME}^" 2>/dev/null || true)" @@ -51,7 +64,6 @@ jobs: uses: actions/forgejo-release@v2 with: direction: upload - skip-assets: true tag: ${{ forgejo.ref_name }} title: ${{ forgejo.ref_name }} release-notes-file: dist/notes.md