File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -65,24 +65,17 @@ jobs:
65
65
- name : Set up Python
66
66
uses : actions/setup-python@v2
67
67
with :
68
- python-version : ' 3.10'
69
-
70
- - name : Check that tag version matches code version
71
- run : |
72
- tag=${GITHUB_REF#refs/tags/}
73
- version=$(python setup.py --version)
74
- echo 'tag='$tag
75
- echo "version file="$version
76
- test "$tag" == "$version"
68
+ python-version : ' 3.x'
77
69
78
70
- name : Install dependencies
79
71
run : |
80
72
python -m pip install --upgrade pip
81
- pip install setuptools wheel twine
73
+ pip install build wheel twine
82
74
- name : Build and publish
83
75
env :
84
76
TWINE_USERNAME : __token__
85
77
TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
86
78
run : |
87
- python setup.py sdist
79
+ python -m pip install --upgrade build
80
+ python -m build
88
81
twine upload dist/*
You can’t perform that action at this time.
0 commit comments