Skip to content

Commit

Permalink
pip wheel build
Browse files Browse the repository at this point in the history
  • Loading branch information
dwr-psandhu committed Dec 17, 2024
1 parent 366bbad commit 8000b8a
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/buildwheels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

on: [push, pull_request]

jobs:
build-wheel:
runs-on: ubuntu-latest

strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.11", "3.12"]

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install pip dependencies
run: |
python -m pip install --upgrade pip
python -m pip install build twine
- name: Build wheel
run: |
python -m build --wheel
- name: Upload Python Package to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python -m twine upload dist/*

0 comments on commit 8000b8a

Please sign in to comment.