Skip to content

Commit abdb7d7

Browse files
ci: fix pre-release workflow to use UV_DYNAMIC_VERSIONING_BYPASS (#176)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 35eb6eb commit abdb7d7

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)