Skip to content

Commit 4fa4768

Browse files
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 <aj@airbyte.io>
1 parent 35eb6eb commit 4fa4768

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

.github/workflows/pre-release-command.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -114,20 +114,16 @@ jobs:
114114
uses: actions/checkout@v7
115115
with:
116116
ref: ${{ steps.resolve-ref.outputs.ref || inputs.ref }}
117+
fetch-depth: 0
117118

118119
- name: Install uv
119120
uses: astral-sh/setup-uv@v7
120121

121-
# ── Set version and build ───────────────────────────────────────
122-
- name: Set pre-release version
123-
run: |
124-
VERSION="${{ inputs.version }}"
125-
sed -i "s/^__version__: str = \".*\"/__version__: str = \"${VERSION}\"/" src/airbyte_api/_version.py
126-
echo "Updated _version.py to: $VERSION"
127-
grep '__version__' src/airbyte_api/_version.py
128-
122+
# ── Build with version override ───────────────────────────────
129123
- name: Build package
130-
run: uv run poe build
124+
run: uv build
125+
env:
126+
UV_DYNAMIC_VERSIONING_BYPASS: ${{ inputs.version }}
131127

132128
- name: Publish to PyPI
133129
run: uv publish

0 commit comments

Comments
 (0)