Skip to content

Commit

Permalink
Move publish into separate step
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelange committed Sep 27, 2024
1 parent 7c8c673 commit ba33395
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,28 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: distribution-${{ matrix.only }}
name: dist-${{ matrix.only }}
path: packages/vaex-core/dist

publish:
if: startsWith(github.ref, 'refs/tags')
needs: [build_wheels]
runs-on: ubuntu-22.04

permissions:
id-token: write # pypa/gh-action-pypi-publish

steps:
- uses: actions/download-artifact@v4
with:
path: dist/
pattern: dist-*
merge-multiple: true

- run: ls -ltra dist/

# https://github.com/pypa/gh-action-pypi-publish#trusted-publishing
- name: Publish package distributions to PyPI
uses: pypa/[email protected]
if: startsWith(github.ref, 'refs/tags')
uses: pypa/[email protected]
with:
skip-existing: true
packages-dir: packages/vaex-core/dist

0 comments on commit ba33395

Please sign in to comment.