Skip to content

Commit

Permalink
Fix upload artifact problem (fixes #227)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiopasra committed Nov 19, 2024
1 parent dee6cc4 commit 81add32
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build wheels and upload to Test PyPI
name: Build wheels manually
on:
workflow_dispatch

Expand All @@ -11,12 +11,12 @@ jobs:

- uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.12'

- name: Install build
run: python -m pip install build

- name: Build sdist
- name: Build sdist only
run: python -m build -s

- uses: actions/upload-artifact@v4
Expand All @@ -39,8 +39,8 @@ jobs:
CIBW_BUILD: cp39-* cp310-* cp311-* cp312-* cp313-*
CIBW_ARCHS_MACOS: "x86_64 universal2 arm64"
CIBW_SKIP: '*_i686'

- uses: actions/upload-artifact@v4
with:
name: numina-wheels
name: numina-wheels-${{ matrix.os }}
path: ./wheelhouse/numina*.whl
11 changes: 6 additions & 5 deletions .github/workflows/upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ jobs:

- uses: actions/setup-python@v5
with:
python-version: '3.x'
python-version: '3.12'

- name: Install build
run: python -m pip install build

- name: Build sdist
- name: Build sdist only
run: python -m build -s

- uses: actions/upload-artifact@v4
with:
name: numina-wheels
name: numina-wheels-dist
path: ./dist/*.tar.gz

build_wheels:
Expand All @@ -45,7 +45,7 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: numina-wheels
name: numina-wheels-${{ matrix.os }}
path: ./wheelhouse/*.whl

upload_pypi:
Expand All @@ -62,7 +62,8 @@ jobs:
steps:
- uses: actions/[email protected]
with:
name: numina-wheels
merge-multiple: true
pattern: numina-wheels-*
path: dist

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

0 comments on commit 81add32

Please sign in to comment.