From 1eaa83dddd6ec86462f2fc34f171360bf0fc3a50 Mon Sep 17 00:00:00 2001 From: Cara Giovanetti Date: Mon, 26 Oct 2026 10:58:59 -0700 Subject: [PATCH] test env --- .github/workflows/publish.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4297ef3..b025f1f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,7 +1,8 @@ name: Publish to PyPI # Publishing a GitHub release (tag vX.Y.Z) uploads linx-bbn X.Y.Z to PyPI. -# Running this workflow by hand uploads a dev build to TestPyPI instead. +# Running this workflow by hand uploads a dev build to TestPyPI instead, under the +# project name LINX there. on: release: types: [published] @@ -20,6 +21,12 @@ jobs: with: python-version: '3.x' + - name: Use the TestPyPI project name + if: github.event_name == 'workflow_dispatch' + run: | + sed -i 's/^name = "linx-bbn"$/name = "LINX"/' pyproject.toml + grep -q '^name = "LINX"$' pyproject.toml + - name: Build sdist and wheel run: | python -m pip install --upgrade pip build twine