File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 matrix :
1212 python-version : ['3.12']
1313
14+ environment :
15+ name : PyPI
16+ url : https://pypi.org/p/pypesto
17+
18+ permissions :
19+ id-token : write
20+
1421 steps :
1522 - name : Check out repository
1623 uses : actions/checkout@v6
@@ -25,15 +32,14 @@ jobs:
2532 with :
2633 python-version : ${{ matrix.python-version }}
2734
28- - name : Install dependencies
35+ - name : dependencies
2936 run : |
3037 python -m pip install --upgrade pip
31- pip install setuptools wheel twine
38+ python -m pip install -U build
3239
33- - name : Build and publish
34- env :
35- TWINE_USERNAME : __token__
36- TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
37- run : |
38- python setup.py sdist bdist_wheel
39- twine upload dist/*
40+ - name : Build distribution
41+ run :
42+ python -m build
43+
44+ - name : Publish a Python distribution to PyPI
45+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments