aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gmail.com>2021-03-26 16:23:10 -0600
committerTim Harder <radhermit@gmail.com>2021-03-26 16:23:10 -0600
commitad803e3ba12ed681d736f744581a58d6ed58a494 (patch)
tree6736def6dadec209aae82cac6f14ff4ffff4d507 /.github/workflows
parentupdate news (diff)
downloadpkgdev-ad803e3ba12ed681d736f744581a58d6ed58a494.tar.gz
pkgdev-ad803e3ba12ed681d736f744581a58d6ed58a494.tar.bz2
pkgdev-ad803e3ba12ed681d736f744581a58d6ed58a494.zip
github: update release workflowv0.1.3
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/*