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