File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,14 +10,11 @@ jobs:
1010 pypi :
1111 runs-on : ubuntu-latest
1212 steps :
13- - uses : actions/checkout@v4
14- - uses : actions/setup-python@v5
15- with :
16- python-version : ' 3.11'
17- architecture : x64
18- - run : pip install poetry==1.8.3
19- - run : poetry build
20- - uses : pypa/gh-action-pypi-publish@release/v1
21- with :
22- user : __token__
23- password : ${{ secrets.PYPI_TOKEN }}
13+ - uses : actions/checkout@v4
14+ - name : Install uv
15+ uses : astral-sh/setup-uv@v6
16+ - run : uv build
17+ - uses : pypa/gh-action-pypi-publish@release/v1
18+ with :
19+ user : __token__
20+ password : ${{ secrets.PYPI_TOKEN }}
Original file line number Diff line number Diff line change 44 paths :
55 - ' src/**'
66 - ' pyproject.toml'
7-
87jobs :
98 test_pypi :
109 runs-on : ubuntu-latest
1110 steps :
12- - uses : actions/checkout@v4
13- - uses : actions/setup-python@v5
14- with :
15- python-version : ' 3.11'
16- architecture : x64
17- - run : pip install poetry==1.8.3
18- - run : >-
19- poetry version patch &&
20- version=$(poetry version | awk '{print $2}') &&
21- poetry version $version.dev.$(date +%s)
22- - run : poetry build
23- - uses : pypa/gh-action-pypi-publish@v1.0.0a0
24- with :
25- user : __token__
26- password : ${{ secrets.TEST_PYPI_TOKEN }}
27- repository_url : https://test.pypi.org/legacy/
11+ - uses : actions/checkout@v4
12+ - name : Install uv
13+ uses : astral-sh/setup-uv@v6
14+ - run : >-
15+ uv version --bump patch && version=$(uv version | awk '{print $2}') && uv version $version.dev.$(date +%s)
16+ - run : uv build
17+ - uses : pypa/gh-action-pypi-publish@v1.0.0a0
18+ with :
19+ user : __token__
20+ password : ${{ secrets.TEST_PYPI_TOKEN }}
21+ repository_url : https://test.pypi.org/legacy/
You can’t perform that action at this time.
0 commit comments