test release wheel 3 #3
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 and Release Python Wheel | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-release: | |
if: contains(github.event.head_commit.message, 'release') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install build dependencies | |
run: pip install build | |
- name: Build the wheel | |
run: python -m build --wheel | |
- name: Upload the wheel as an artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: python-wheel | |
path: dist/*.whl |