Skip to content

Commit

Permalink
Update pypi.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
EmanueleGiacomini authored Apr 15, 2024
1 parent 79da583 commit afbd35a
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Build sdist
run: pipx run build --sdist ${{github.workspace}}/python/
run: pipx run build --sdist ${{github.workspace}}/python/
- name: Move sdist to dist
run: mkdir -p dist && mv ${{github.workspace}}/python/dist/*.tar.gz dist/
run: mkdir -p dist && mv ${{github.workspace}}/python/dist/*.tar.gz dist/

- uses: actions/upload-artifact@v3
with:
with:
path: dist/*.tar.gz

cibuildwheel:
Expand All @@ -30,13 +29,13 @@ jobs:
- uses: actions/checkout@v3

- name: Build wheels
if: github.event_name == 'release'
uses: pypa/cibuildwheel@v2.16.5
with:
package-dir: ${{github.workspace}}/python/
if: github.event_name == 'release'
uses: pypa/cibuildwheel@v2.16.5
with:
package-dir: ${{github.workspace}}/python/

- uses: actions/upload-artifact@v3
with:
with:
path: ./wheelhouse/*.whl

pypi:
Expand All @@ -45,12 +44,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
with:
name: artifact
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1
with:
with:
password: ${{ secrets.PYPI_API_TOKEN }}


Expand Down

0 comments on commit afbd35a

Please sign in to comment.