diff --git a/.github/workflows/pypi-release.yaml b/.github/workflows/pypi-release.yaml index 5b0648c..fe9f519 100644 --- a/.github/workflows/pypi-release.yaml +++ b/.github/workflows/pypi-release.yaml @@ -18,7 +18,7 @@ concurrency: cancel-in-progress: true jobs: - build-package: + build: runs-on: ubuntu-latest if: github.repository == 'xarray-contrib/cupy-xarray' steps: @@ -26,17 +26,27 @@ jobs: with: fetch-depth: 0 - name: Build & inspect package - uses: hynek/build-and-inspect-python-package@v1 + uses: hynek/build-and-inspect-python-package@v1.3 id: distribution + + upload: + runs-on: ubuntu-latest + needs: build + if: github.event_name == 'release' + + steps: + - uses: actions/download-artifact@v3 + with: + name: Packages + path: dist + - name: Check run: | - ls -ltrh ${{ steps.distribution.outputs.dist }} + ls -ltrh dist - name: Publish package to PyPI - if: github.event_name == 'release' uses: pypa/gh-action-pypi-publish@v1.5.1 with: user: __token__ password: ${{ secrets.PYPI_TOKEN }} verbose: true - packages_dir: ${{ steps.distribution.outputs.dist }}