Skip to content

Commit

Permalink
Merge pull request #136 from libAtoms/23-sdist-attempt-4
Browse files Browse the repository at this point in the history
Update build-wheels.yml
  • Loading branch information
jameskermode authored Jan 13, 2023
2 parents d0c8280 + 0cddbce commit 742dbe2
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,25 @@ jobs:
fi
shell: bash

- name: Deploy to PyPI
- name: Deploy wheels to PyPI
if: steps.check-tag.outputs.match == 'true'
run: |
pip install twine
twine upload wheelhouse/*.whl
if [[ ${{ startsWith(matrix.os, 'ubuntu') && matrix.python == 'cp311' }} ]]; then
# build and upload sdist only once
pip install build
python -m build
twine upload dist/matscipy-*.tar.gz
fi
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
shell: bash

- name: Deploy sdist to PyPI
if: ${{ steps.check-tag.outputs.match == 'true' && startsWith(matrix.os, 'ubuntu') && matrix.python == 'cp311' }}
run: |
pip install build
python -m build
twine upload dist/matscipy-*.tar.gz
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
shell: bash


0 comments on commit 742dbe2

Please sign in to comment.