Skip to content

Commit fce9886

Browse files
committed
fix: uv virtual env
1 parent 8a63c06 commit fce9886

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,23 @@ jobs:
2525
with:
2626
fetch-depth: 0
2727
persist-credentials: false
28-
- name: Remove Hardcoded Version (if present)
28+
- name: Create Virtual Environment
2929
run: |
30-
sed -i '/^version =/d' pyproject.toml
31-
- name: Update Dependencies
30+
uv venv
31+
- name: Activate Virtual Environment and Install Dependencies
3232
run: |
33+
source .venv/bin/activate # For Linux/macOS. Use .venv\Scripts\activate for Windows
34+
uv sync --frozen
3335
uv pip install --upgrade setuptools wheel hatchling twine
3436
- name: Build app
3537
run: |
36-
uv sync --frozen
38+
source .venv/bin/activate # Activate the virtual environment again if needed
3739
uv build
3840
id: build_cache
3941
if: success()
4042
- name: Validate Metadata
4143
run: |
44+
source .venv/bin/activate
4245
uv run twine check dist/*
4346
- name: Debug Dist Directory
4447
run: |
@@ -70,6 +73,9 @@ jobs:
7073
with:
7174
fetch-depth: 0
7275
persist-credentials: false
76+
- name: Restore Virtual Environment
77+
run: |
78+
source .venv/bin/activate
7379
- name: Semantic Release
7480
uses: cycjimmy/[email protected]
7581
with:

0 commit comments

Comments
 (0)