aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/release.yml21
1 files changed, 15 insertions, 6 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index df1182e..3c672c9 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -19,7 +19,7 @@ jobs:
- name: Install dependencies
run: |
- # install deps required for building sdist/wheel
+ # install deps required for building sdist/wheels
python -m pip install --upgrade pip
pip install -r requirements/dist.txt
pip install -r requirements/test.txt
@@ -30,14 +30,24 @@ jobs:
PY_COLORS: 1
run: python setup.py test
- - name: Build release files
+ - name: Build sdist
run: |
git clean -fxd
python setup.py sdist
- python setup.py bdist_wheel
- # output file info
- tar -ztf dist/*.tar.gz | sort
+
+ - name: Build wheel
+ run: python setup.py bdist_wheel
+
+ - name: Output dist file info
+ run: |
sha512sum dist/*
+ tar -ztf dist/*.tar.gz | sort
+
+ - name: Install twine and check files
+ run: |
+ pip install twine wheel-inspect
+ twine check dist/*
+ wheel2json dist/*.whl
- name: Upload files for tagged releases
env:
@@ -46,5 +56,4 @@ jobs:
# only upload files for tagged releases
if: startsWith(github.ref, 'refs/tags/')
run: |
- pip install twine
twine upload dist/*