Skip to content

Commit

Permalink
ci: make upload/download artifact compatible with new action version
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Jan 4, 2024
1 parent 456bbd2 commit 0be89e8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-publish-python-packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ jobs:
if: matrix.upload_sdist
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.package }}
name: ${{ format('{0}_{1}', matrix.package, 'sdist') }}
path: ${{ matrix.package }}/dist/*.tar.gz
if-no-files-found: error

- name: Upload wheel artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.package }}
name: ${{ join([ format('{0}_{1}', matrix.package, 'wheel'), matrix.GOOS , matrix.GOARCH], '-') }}
path: ${{ matrix.package }}/dist/*.whl
if-no-files-found: error

Expand All @@ -116,8 +116,9 @@ jobs:
- name: Download built source distributions and wheels
uses: actions/download-artifact@v4
with:
name: ${{ matrix.package }}
pattern: ${{ matrix.package }}_*
path: ${{ matrix.package }}/dist
merge-multiple: true

- name: Inspect built source distributions and wheels
working-directory: ${{ matrix.package }}
Expand Down

0 comments on commit 0be89e8

Please sign in to comment.