Skip to content

Commit

Permalink
add cibuildwheel
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-csliu committed Oct 9, 2023
1 parent ffed7e4 commit efc05dc
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,22 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install cibuildwheel==2.16.2
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: setting version
run: |
python version.py ${{ github.ref }}
- name: build package
run : python -m build
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
- name: Upload /dist
uses: actions/upload-artifact@v3
with:
name: python-package-distributions
path: dist/*.tar.gz
path: |
dist/*.tar.gz
wheelhouse/*
- name: get the file name in /dist
run: |
VAR1=$(find ./dist -type f -name "*.tar.gz")
Expand Down Expand Up @@ -82,7 +87,9 @@ jobs:
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
path: |
dist/
wheelhouse/*
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down

0 comments on commit efc05dc

Please sign in to comment.