Skip to content

Commit ad803e3

Browse files
committed
github: update release workflow
1 parent 319ea3d commit ad803e3

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
- name: Install dependencies
2121
run: |
22-
# install deps required for building sdist/wheel
22+
# install deps required for building sdist/wheels
2323
python -m pip install --upgrade pip
2424
pip install -r requirements/dist.txt
2525
pip install -r requirements/test.txt
@@ -30,14 +30,24 @@ jobs:
3030
PY_COLORS: 1
3131
run: python setup.py test
3232

33-
- name: Build release files
33+
- name: Build sdist
3434
run: |
3535
git clean -fxd
3636
python setup.py sdist
37-
python setup.py bdist_wheel
38-
# output file info
39-
tar -ztf dist/*.tar.gz | sort
37+
38+
- name: Build wheel
39+
run: python setup.py bdist_wheel
40+
41+
- name: Output dist file info
42+
run: |
4043
sha512sum dist/*
44+
tar -ztf dist/*.tar.gz | sort
45+
46+
- name: Install twine and check files
47+
run: |
48+
pip install twine wheel-inspect
49+
twine check dist/*
50+
wheel2json dist/*.whl
4151
4252
- name: Upload files for tagged releases
4353
env:
@@ -46,5 +56,4 @@ jobs:
4656
# only upload files for tagged releases
4757
if: startsWith(github.ref, 'refs/tags/')
4858
run: |
49-
pip install twine
5059
twine upload dist/*

0 commit comments

Comments
 (0)