From d9d9d9a612de820fb162434d1d8a9ca77f08a14c Mon Sep 17 00:00:00 2001 From: logicoffee Date: Wed, 21 Jan 2026 20:27:37 +0900 Subject: [PATCH] Make it possible to specify a branch for testpypi --- .github/workflows/publish-testpypi.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/publish-testpypi.yml b/.github/workflows/publish-testpypi.yml index 0e55967..a028078 100644 --- a/.github/workflows/publish-testpypi.yml +++ b/.github/workflows/publish-testpypi.yml @@ -2,6 +2,11 @@ name: Publish to TestPyPI on: workflow_dispatch: + inputs: + ref: + description: "Git ref to publish (branch or tag)" + required: true + default: "main" jobs: build-and-publish: @@ -14,6 +19,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: + ref: ${{ inputs.ref }} fetch-depth: 0 - name: Set up Python