From 4b81ddb39de22fa3012e2399fef49e4b55278e61 Mon Sep 17 00:00:00 2001 From: Einar Forselv Date: Wed, 9 Mar 2022 16:22:41 +0100 Subject: [PATCH] publish: Only copy whl and source to dist --- .github/workflows/publish.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b7c0234..8ef8121 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -66,15 +66,19 @@ jobs: - build_sdist - build_wheels runs-on: ubuntu-latest - # if: ${{ github.event_name == 'release' && github.event.action == 'published' }} + # if: ${{ github.event_name == 'release' && github.event.action == 'created' }} steps: - name: download uses: actions/download-artifact@v2 with: path: dist/ + # Only copy the wheels and source dist files. Additional lingering + # files will cause issues - name: Copy Files to dist shell: bash - run: cp dist/*/* dist/ + run: | + cp dist/*/*.whl dist/ + cp dist/*/*.tar.gz dist/ - uses: pypa/gh-action-pypi-publish@v1.4.2 with: user: __token__