Skip to content

Commit

Permalink
Merge pull request #438 from acturtle/develop
Browse files Browse the repository at this point in the history
change build_deploy
  • Loading branch information
zchmielewska authored Oct 16, 2024
2 parents f904720 + cdf5c05 commit 887f52d
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions .github/workflows/build_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,22 +57,21 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macos-12]
os: [ ubuntu-20.04, windows-2019, macos-12 ]

steps:
- uses: actions/checkout@v4

- name: Create virtual environment and install dependencies
- name: Install dependencies
run: |
python -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip Cython numpy
python -m pip install --upgrade pip
python -m pip install Cython
python -m pip install numpy
- name: Build wheels
run: |
source venv/bin/activate
python -m pip install cibuildwheel
python -m cibuildwheel --output-dir wheelhouse
uses: pypa/cibuildwheel@v2.18.0
with:
platforms: "auto"

- uses: actions/upload-artifact@v3
with:
Expand All @@ -89,16 +88,8 @@ jobs:
name: artifact
path: dist

- name: Create virtual environment and install Twine
run: |
python -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip twine
- name: Publish distribution to PyPI
run: |
source venv/bin/activate
twine upload dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 887f52d

Please sign in to comment.