From f1f788332220b56875772aac95be97c881a64e04 Mon Sep 17 00:00:00 2001 From: notabd7-deepshard Date: Fri, 30 Jan 2026 19:54:32 -0800 Subject: [PATCH 1/2] fix pre release issue --- .github/workflows/publish_pip.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish_pip.yml b/.github/workflows/publish_pip.yml index c8e3939..9a5653a 100644 --- a/.github/workflows/publish_pip.yml +++ b/.github/workflows/publish_pip.yml @@ -31,7 +31,7 @@ jobs: - name: Set version from run number if: github.event_name == 'push' && github.ref == 'refs/heads/main' - run: echo "SETUPTOOLS_SCM_PRETEND_VERSION=0.1.dev${{ github.run_number }}" >> $GITHUB_ENV + run: echo "SETUPTOOLS_SCM_PRETEND_VERSION=0.1.${{ github.run_number }}" >> $GITHUB_ENV - name: Build wheel run: python -m build @@ -100,8 +100,8 @@ jobs: - name: Create Release uses: softprops/action-gh-release@v2 with: - tag_name: v0.1.dev${{ github.run_number }} - name: truffile v0.1.dev${{ github.run_number }} + tag_name: v0.1.${{ github.run_number }} + name: truffile v0.1.${{ github.run_number }} files: dist/*.whl generate_release_notes: true make_latest: true From bbcd7ff1b5b4b6c20a183bbe2e6cf024de22531a Mon Sep 17 00:00:00 2001 From: notabd7-deepshard Date: Fri, 30 Jan 2026 19:58:09 -0800 Subject: [PATCH 2/2] dev for prs stable for main --- .github/workflows/publish_pip.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_pip.yml b/.github/workflows/publish_pip.yml index 9a5653a..8c84e4d 100644 --- a/.github/workflows/publish_pip.yml +++ b/.github/workflows/publish_pip.yml @@ -30,8 +30,12 @@ jobs: run: pip install build - name: Set version from run number - if: github.event_name == 'push' && github.ref == 'refs/heads/main' - run: echo "SETUPTOOLS_SCM_PRETEND_VERSION=0.1.${{ github.run_number }}" >> $GITHUB_ENV + run: | + if [ "${{ github.event_name }}" = "push" ] && [ "${{ github.ref }}" = "refs/heads/main" ]; then + echo "SETUPTOOLS_SCM_PRETEND_VERSION=0.1.${{ github.run_number }}" >> $GITHUB_ENV + else + echo "SETUPTOOLS_SCM_PRETEND_VERSION=0.0.dev0" >> $GITHUB_ENV + fi - name: Build wheel run: python -m build