Skip to content

Commit

Permalink
Use v4 of upload/download artifacts actions
Browse files Browse the repository at this point in the history
- as of v4 each artifact upload must have a unique name
  • Loading branch information
lkeegan committed Jan 4, 2024
1 parent 00700f2 commit 29d0882
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,10 @@ jobs:
CIBW_ARCHS: "${{ matrix.arch }}"
CIBW_SKIP: "${{ matrix.skip }}"

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: (!matrix.use_qemu) || fromJSON(env.USE_QEMU)
with:
name: artifacts-wheels-${{ strategy.job-index }}
path: ./wheelhouse/*.whl

build-sdist:
Expand All @@ -108,8 +109,9 @@ jobs:
- name: Build SDist
run: pipx run build --sdist

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: artifacts-sdist
path: dist/*.tar.gz

test-sdist:
Expand All @@ -125,9 +127,9 @@ jobs:
with:
python-version: '3.9'

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: artifact
name: artifacts-sdist
path: sdist

- name: Install from SDist
Expand Down Expand Up @@ -156,9 +158,10 @@ jobs:
if: github.repository_owner == 'ssciwr'

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

- name: Upload to PyPI
Expand Down

0 comments on commit 29d0882

Please sign in to comment.