Skip to content

Commit 81add32

Browse files
committed
Fix upload artifact problem (fixes #227)
1 parent dee6cc4 commit 81add32

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.github/workflows/manual.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build wheels and upload to Test PyPI
1+
name: Build wheels manually
22
on:
33
workflow_dispatch
44

@@ -11,12 +11,12 @@ jobs:
1111

1212
- uses: actions/setup-python@v5
1313
with:
14-
python-version: '3.11'
14+
python-version: '3.12'
1515

1616
- name: Install build
1717
run: python -m pip install build
1818

19-
- name: Build sdist
19+
- name: Build sdist only
2020
run: python -m build -s
2121

2222
- uses: actions/upload-artifact@v4
@@ -39,8 +39,8 @@ jobs:
3939
CIBW_BUILD: cp39-* cp310-* cp311-* cp312-* cp313-*
4040
CIBW_ARCHS_MACOS: "x86_64 universal2 arm64"
4141
CIBW_SKIP: '*_i686'
42-
42+
4343
- uses: actions/upload-artifact@v4
4444
with:
45-
name: numina-wheels
45+
name: numina-wheels-${{ matrix.os }}
4646
path: ./wheelhouse/numina*.whl

.github/workflows/upload.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ jobs:
1414

1515
- uses: actions/setup-python@v5
1616
with:
17-
python-version: '3.x'
17+
python-version: '3.12'
1818

1919
- name: Install build
2020
run: python -m pip install build
2121

22-
- name: Build sdist
22+
- name: Build sdist only
2323
run: python -m build -s
2424

2525
- uses: actions/upload-artifact@v4
2626
with:
27-
name: numina-wheels
27+
name: numina-wheels-dist
2828
path: ./dist/*.tar.gz
2929

3030
build_wheels:
@@ -45,7 +45,7 @@ jobs:
4545

4646
- uses: actions/upload-artifact@v4
4747
with:
48-
name: numina-wheels
48+
name: numina-wheels-${{ matrix.os }}
4949
path: ./wheelhouse/*.whl
5050

5151
upload_pypi:
@@ -62,7 +62,8 @@ jobs:
6262
steps:
6363
- uses: actions/[email protected]
6464
with:
65-
name: numina-wheels
65+
merge-multiple: true
66+
pattern: numina-wheels-*
6667
path: dist
6768

6869
- uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)