Skip to content

Commit

Permalink
github: update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
radhermit committed Mar 26, 2021
1 parent 319ea3d commit ad803e3
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -46,5 +56,4 @@ jobs:
# only upload files for tagged releases
if: startsWith(github.ref, 'refs/tags/')
run: |
pip install twine
twine upload dist/*

0 comments on commit ad803e3

Please sign in to comment.