From 915e5b7a5fae9e833bf0be0ce9b09355642e408a Mon Sep 17 00:00:00 2001 From: "Keto D. Zhang" Date: Sun, 19 Feb 2023 19:53:02 -0800 Subject: [PATCH 1/2] Fix typo cw_build -> cibw in job name --- .github/workflows/publish.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b3c591d1..338140d1 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,7 +9,7 @@ on: jobs: build_wheels: - name: ${{ matrix.os }} ${{ matrix.cibw_archs }} ${{ matrix.cw_build }} + name: ${{ matrix.os }} ${{ matrix.cibw_archs }} ${{ matrix.cibw_build }} runs-on: ${{ matrix.os }} strategy: matrix: @@ -79,9 +79,11 @@ jobs: with: path: dist/ - - name: Publish package to PyPI - # All files in dist/ are published - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} + - run: "ls -a dist/" + + # - name: Publish package to PyPI + # # All files in dist/ are published + # uses: pypa/gh-action-pypi-publish@release/v1 + # with: + # user: __token__ + # password: ${{ secrets.PYPI_API_TOKEN }} From c873375d089ea2e725bcb0b74141a9aba91ff916 Mon Sep 17 00:00:00 2001 From: "Keto D. Zhang" Date: Sun, 19 Feb 2023 20:06:48 -0800 Subject: [PATCH 2/2] Split download-artifacts to a job per artifact --- .github/workflows/publish.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 338140d1..3b74bb44 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -74,16 +74,21 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Download all artifacts to dist/ + - name: Download sdist artifacts to dist/ uses: actions/download-artifact@v3 with: + name: sdist path: dist/ - - run: "ls -a dist/" + - name: Download wheelhouse artifacts to dist/ + uses: actions/download-artifact@v3 + with: + name: wheelhouse + path: dist/ - # - name: Publish package to PyPI - # # All files in dist/ are published - # uses: pypa/gh-action-pypi-publish@release/v1 - # with: - # user: __token__ - # password: ${{ secrets.PYPI_API_TOKEN }} + - name: Publish package to PyPI + # All files in dist/ are published + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }}