Skip to content

Commit

Permalink
uncommend build wheel ci
Browse files Browse the repository at this point in the history
  • Loading branch information
TimotheeMathieu committed Sep 3, 2024
1 parent 0f95d8d commit 3e773d5
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: build_wheels

on: #[push, pull_request]
on: [push, pull_request]
release:
types:
- created
Expand Down Expand Up @@ -64,20 +64,20 @@ jobs:
with:
path: dist/*.tar.gz

upload_pypi:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
# upload to PyPI on every tag starting with 'v'
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v2
with:
name: artifact
path: dist
# upload_pypi:
# needs: [build_wheels, build_sdist]
# runs-on: ubuntu-latest
# # upload to PyPI on every tag starting with 'v'
# if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
# steps:
# - uses: actions/download-artifact@v2
# with:
# name: artifact
# path: dist

- uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}
# To test:
repository_url: https://test.pypi.org/legacy/
# - uses: pypa/gh-action-pypi-publish@master
# with:
# user: __token__
# password: ${{ secrets.pypi_password }}
# # To test:
# repository_url: https://test.pypi.org/legacy/

0 comments on commit 3e773d5

Please sign in to comment.