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