Skip to content

Commit

Permalink
Fix artifact naming in deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese committed Dec 18, 2023
1 parent 33209ac commit 06a0cd6
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,16 @@ jobs:
include:
- os: windows-2019
cibw_archs: "AMD64 ARM64"
artifact_name: "win"
- os: macos-11
cibw_archs: "x86_64 arm64"
artifact_name: "mac"
- os: "ubuntu-20.04"
cibw_archs: "aarch64"
artifact_name: "ubuntu-aarch"
- os: "ubuntu-20.04"
cibw_archs: "x86_64"
artifact_name: "ubuntu-x86_64"

steps:
- uses: actions/checkout@v4
Expand All @@ -63,22 +67,37 @@ jobs:

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

upload_to_pypi:
needs: [build_sdist, build_wheels]
runs-on: ubuntu-latest
steps:
- name: Download sdist artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: sdist
path: dist
- name: Download wheels artifact
uses: actions/download-artifact@v3
- name: Download wheels artifact - win
uses: actions/download-artifact@v4
with:
name: wheels
name: wheels-win
path: dist
- name: Download wheels artifact - mac
uses: actions/download-artifact@v4
with:
name: wheels-mac
path: dist
- name: Download wheels artifact - ubuntu aarch
uses: actions/download-artifact@v4
with:
name: wheels-ubuntu-aarch
path: dist
- name: Download wheels artifact - ubuntu x86_64
uses: actions/download-artifact@v4
with:
name: wheels-ubuntu-x86_64
path: dist
- name: Publish package to Test PyPI
if: github.event.action != 'published' && github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
Expand Down

0 comments on commit 06a0cd6

Please sign in to comment.