Skip to content

Commit 7fabacb

Browse files
ddelangemaartenbreddels
authored andcommitted
Fix github actions 400 pypi publish error
1 parent f304f80 commit 7fabacb

File tree

1 file changed

+24
-47
lines changed

1 file changed

+24
-47
lines changed

.github/workflows/wheel-universal.yml

Lines changed: 24 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,23 @@ concurrency:
1818

1919
jobs:
2020
build_wheels:
21-
name: Build universal wheels and source distributions
21+
name: Build ${{ matrix.package }}
2222
runs-on: ubuntu-latest
2323
permissions:
2424
id-token: write # pypa/gh-action-pypi-publish
25-
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
package:
29+
- vaex
30+
- vaex-graphql
31+
- vaex-jupyter
32+
- vaex-ml
33+
- vaex-contrib
34+
- vaex-viz
35+
- vaex-astro
36+
- vaex-hdf5
37+
- vaex-server
2638
steps:
2739
- uses: actions/checkout@v5
2840
with:
@@ -32,56 +44,21 @@ jobs:
3244
with:
3345
python-version: '3.12'
3446

35-
- name: chores
36-
run: |
37-
mkdir dist
38-
pip install -U pip setuptools wheel
39-
40-
- name: Build vaex
41-
run: |
42-
(cp README.md packages/vaex/ && cd packages/vaex && python setup.py sdist bdist_wheel); cp packages/vaex/dist/* dist
43-
44-
- name: Build vaex-graphql
45-
run: |
46-
(cd packages/vaex-graphql && python setup.py sdist bdist_wheel); cp packages/vaex-graphql/dist/* dist
47-
48-
- name: Build vaex-jupyter
49-
run: |
50-
(cd packages/vaex-jupyter && python setup.py sdist bdist_wheel); cp packages/vaex-jupyter/dist/* dist
51-
52-
- name: Build vaex-ml
53-
run: |
54-
(cd packages/vaex-ml && python setup.py sdist bdist_wheel); cp packages/vaex-ml/dist/* dist
47+
- name: Install build dependencies
48+
run: pip install -U pip setuptools wheel
5549

56-
- name: Build vaex-contrib
57-
run: |
58-
(cd packages/vaex-contrib && python setup.py sdist bdist_wheel); cp packages/vaex-contrib/dist/* dist
50+
- name: Copy README for vaex package
51+
if: matrix.package == 'vaex'
52+
run: cp README.md packages/vaex/
5953

60-
- name: Build vaex-viz
61-
run: |
62-
(cd packages/vaex-viz && python setup.py sdist bdist_wheel); cp packages/vaex-viz/dist/* dist
63-
64-
- name: Build vaex-astro
65-
run: |
66-
(cd packages/vaex-astro && python setup.py sdist bdist_wheel); cp packages/vaex-astro/dist/* dist
67-
68-
- name: Build vaex-hdf5
69-
run: |
70-
(cd packages/vaex-hdf5 && python setup.py sdist bdist_wheel); cp packages/vaex-hdf5/dist/* dist
71-
72-
- name: Build vaex-server
73-
run: |
74-
(cd packages/vaex-server && python setup.py sdist bdist_wheel); cp packages/vaex-server/dist/* dist
75-
76-
- uses: actions/upload-artifact@v4
77-
with:
78-
name: distributions-universal
79-
path: ./dist
54+
- name: Build ${{ matrix.package }}
55+
run: python setup.py sdist bdist_wheel
56+
working-directory: packages/${{ matrix.package }}
8057

8158
# https://github.com/pypa/gh-action-pypi-publish#trusted-publishing
82-
- name: Publish package distributions to PyPI
59+
- name: Publish ${{ matrix.package }} to PyPI
8360
uses: pypa/gh-action-pypi-publish@v1.12.4
8461
if: startsWith(github.ref, 'refs/tags')
85-
continue-on-error: true
8662
with:
63+
packages-dir: packages/${{ matrix.package }}/dist/
8764
skip-existing: true

0 commit comments

Comments
 (0)