build wheel for release #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build wheel for release | |
on: | |
release: | |
types: [published] | |
permissions: | |
contents: write # upload artifacts requires this permission | |
jobs: | |
build_wheel: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
- name: Setup python environment | |
uses: actions/setup-python@v5 | |
with: | |
# use the minimum py ver we support to | |
# generate the wheel. | |
python-version: "3.8" | |
- name: Build wheel | |
run: | | |
python3 -m pip install -q -U pip | |
pip install -q -U hatch | |
hatch build -t wheel | |
- name: Upload built wheel as release asset | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: dist/*.whl |