File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,16 @@ jobs:
23
23
python -m pip install --upgrade pip
24
24
pip install uv
25
25
26
+ - name : Setup virtual environment
27
+ run : |
28
+ uv venv
29
+ echo "VIRTUAL_ENV=$(pwd)/.venv" >> $GITHUB_ENV
30
+ echo "$(pwd)/.venv/bin" >> $GITHUB_PATH
31
+
26
32
- name : Install dependencies
27
33
run : |
28
- uv pip install --system - e ".[dev]"
29
- uv pip install --system build
34
+ uv pip install -e ".[dev]"
35
+ uv pip install build
30
36
31
37
- name : Build source distribution
32
38
run : |
40
46
# Build only the source distribution
41
47
python -m build --sdist
42
48
43
- - name : Publish package distributions to PyPI
49
+ - name : Publish package to PyPI
44
50
uses : pypa/gh-action-pypi-publish@release/v1
45
51
with :
46
- packages-dir : dist/
52
+ packages-dir : dist/
53
+ password : ${{ secrets.PYPI_API_TOKEN }}
54
+ # Remove the password line after the first successful publish
55
+ # to switch to trusted publishing for subsequent releases
You can’t perform that action at this time.
0 commit comments