diff --git a/.github/workflows/build-wheel.yml b/.github/workflows/build-wheel.yml new file mode 100644 index 0000000..80933a8 --- /dev/null +++ b/.github/workflows/build-wheel.yml @@ -0,0 +1,44 @@ +name: Build Python Wheel + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + release: + types: [ created ] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + + - name: Install build dependencies + run: | + python -m pip install --upgrade pip + pip install build + + - name: Build wheel + run: python -m build --wheel + + - name: Upload wheel artifact + uses: actions/upload-artifact@v4 + with: + name: pyfromscratch-wheel + path: dist/*.whl + if-no-files-found: error + retention-days: 90 + + - name: List built artifacts + run: ls -lh dist/