From 30d741b41861d01adae405d3ae8d601189cee6a8 Mon Sep 17 00:00:00 2001 From: BillTheMaker Date: Sat, 6 Dec 2025 16:19:02 -0700 Subject: [PATCH] Update publish workflow to allow manual triggering --- .github/workflows/publish.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1755931..5acfa0f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,18 +1,15 @@ name: Publish to PyPI -# This workflow is triggered when you push a new version tag (e.g., v0.1.0, v1.2.3) on: push: tags: - - 'v[0-9]+.[0-9]+.[0-9]+*' # Matches v0.1.0 or v1.0.0-rc1, etc. - # Allows manual triggering from the GitHub Actions UI + - 'v[0-9]+.[0-9]+.[0-9]+*' workflow_dispatch: jobs: build_wheels: name: Build wheels on ${{ matrix.os }} runs-on: ${{ matrix.os }} - # Define a matrix to build for common operating systems and architectures strategy: matrix: include: @@ -57,8 +54,8 @@ jobs: name: Publish to PyPI needs: [build_wheels] runs-on: ubuntu-latest - # This step will only run if the 'build_wheels' job completed successfully - if: startsWith(github.ref, 'refs/tags/') + # Run on tags OR manual trigger + if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' steps: - uses: actions/download-artifact@v4