Simplify CI scripts.

pull/493/head
KmolYuan 2021-12-03 18:04:19 +08:00
parent 84f30699dd
commit ba07e95c0e
1 changed files with 2 additions and 6 deletions

View File

@ -55,12 +55,8 @@ jobs:
- if: startsWith(github.ref, 'refs/tags/py') && matrix.os == 'ubuntu-latest' - if: startsWith(github.ref, 'refs/tags/py') && matrix.os == 'ubuntu-latest'
name: release name: release
working-directory: cython working-directory: cython
run: | run: python -m twine upload "dist/*.tar.gz" --skip-existing
python -m build --sdist
python -m twine upload "dist/*.tar.gz" --skip-existing
- if: startsWith(github.ref, 'refs/tags/py') && matrix.os != 'ubuntu-latest' - if: startsWith(github.ref, 'refs/tags/py') && matrix.os != 'ubuntu-latest'
name: release name: release
working-directory: cython working-directory: cython
run: | run: python -m twine upload "dist/*.whl" --skip-existing
python -m build --wheel
python -m twine upload "dist/*.whl" --skip-existing