@@ -19,40 +19,40 @@ jobs:
1919 build-n-publish :
2020 name : Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
2121 runs-on : ubuntu-latest
22-
22+
2323 steps :
24- - uses : actions/checkout@v3
25- - name : Set up Python
26- uses : actions/setup-python@v4
27- with :
28- python-version : " 3.11"
29-
30- - name : Install pypa/build
31- run : |
32- python -m pip install --upgrade pip
33- python -m pip install --upgrade setuptools
34- python -m pip install build pipenv tox --user
35-
36- - name : Build a binary wheel and a source tarball
37- run : |
38- pipenv -- python 3.11
39- make build
40-
41- - name : tox
42- run : >-
43- tox
44-
45- - name : Publish distribution 📦 to Test PyPI
46- uses : pypa/gh-action-pypi-publish@release/v1
47- with :
48- skip-existing : true
49- verbose : true
50- password : ${{ secrets.TEST_PYPI_API_TOKEN }}
51- repository-url : https://test.pypi.org/legacy/
52- - name : Publish distribution 📦 to PyPI
53- if : startsWith(github.ref, 'refs/tags')
54- uses : pypa/gh-action-pypi-publish@release/v1
55- with :
56- skip-existing : true
57- verbose : true
58- password : ${{ secrets.PYPI_API_TOKEN }}
24+ - uses : actions/checkout@v3
25+ - name : Set up Python
26+ uses : actions/setup-python@v4
27+ with :
28+ python-version : " 3.11"
29+
30+ - name : Install pypa/build
31+ run : |
32+ python -m pip install --upgrade pip
33+ python -m pip install --upgrade setuptools
34+ python -m pip install build uv tox --user
35+
36+ - name : Build a binary wheel and a source tarball
37+ run : |
38+ uv python pin 3.11
39+ make build
40+
41+ - name : tox
42+ run : >-
43+ tox
44+
45+ - name : Publish distribution 📦 to Test PyPI
46+ uses : pypa/gh-action-pypi-publish@release/v1
47+ with :
48+ skip-existing : true
49+ verbose : true
50+ password : ${{ secrets.TEST_PYPI_API_TOKEN }}
51+ repository-url : https://test.pypi.org/legacy/
52+ - name : Publish distribution 📦 to PyPI
53+ if : startsWith(github.ref, 'refs/tags')
54+ uses : pypa/gh-action-pypi-publish@release/v1
55+ with :
56+ skip-existing : true
57+ verbose : true
58+ password : ${{ secrets.PYPI_API_TOKEN }}
0 commit comments