From 4fa47680635f46db37c207ca198dba8accb76160 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 23 Jun 2026 03:03:51 +0000 Subject: [PATCH] ci: fix pre-release workflow to use UV_DYNAMIC_VERSIONING_BYPASS The pre-release workflow was using sed to edit _version.py, which is now ignored since #175 switched to git tag-based versioning. Replace with UV_DYNAMIC_VERSIONING_BYPASS env var (matching PyAirbyte pattern). Also adds fetch-depth: 0 to the checkout step. Co-Authored-By: AJ Steers --- .github/workflows/pre-release-command.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pre-release-command.yml b/.github/workflows/pre-release-command.yml index d56bde17..fd778d53 100644 --- a/.github/workflows/pre-release-command.yml +++ b/.github/workflows/pre-release-command.yml @@ -114,20 +114,16 @@ jobs: uses: actions/checkout@v7 with: ref: ${{ steps.resolve-ref.outputs.ref || inputs.ref }} + fetch-depth: 0 - name: Install uv uses: astral-sh/setup-uv@v7 - # ── Set version and build ─────────────────────────────────────── - - name: Set pre-release version - run: | - VERSION="${{ inputs.version }}" - sed -i "s/^__version__: str = \".*\"/__version__: str = \"${VERSION}\"/" src/airbyte_api/_version.py - echo "Updated _version.py to: $VERSION" - grep '__version__' src/airbyte_api/_version.py - + # ── Build with version override ─────────────────────────────── - name: Build package - run: uv run poe build + run: uv build + env: + UV_DYNAMIC_VERSIONING_BYPASS: ${{ inputs.version }} - name: Publish to PyPI run: uv publish