diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index cbcdbf6..0768cf3 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -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: @@ -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: @@ -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 }}