Skip to content

Commit

Permalink
ci: fix publish_on_pypi workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nightwnvol committed Sep 14, 2023
1 parent fe0581b commit a0a5503
Showing 1 changed file with 54 additions and 13 deletions.
67 changes: 54 additions & 13 deletions .github/workflows/publish_on_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,67 @@ on:
jobs:
publish_on_pypi:
name: Publish on PyPI
strategy:
matrix:
artifact:
- [build_wheels, windows, AMD64]
- [build_wheels, windows, x86]
- [build_wheels, macos, x86_64]
- [macos_arm64_wheels, macos, arm64]
- [build_wheels, linux, x86_64]
- [build_wheels, linux, aarch64]
runs-on: ubuntu-20.04
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Download wheels
- name: Download windows_AMD64 wheels
uses: dawidd6/[email protected]
with:
workflow: ${{ matrix.artifact[0] }}.yml
workflow: build_wheels.yml
workflow_conclusion: success
commit: ${{github.event.pull_request.head.sha}}
name: wheels_${{ matrix.artifact[1] }}_${{ matrix.artifact[2] }}
name: wheels_windows_AMD64
path: dist
search_artifacts: true

- name: Download windows_x86 wheels
uses: dawidd6/[email protected]
with:
workflow: build_wheels.yml
workflow_conclusion: success
commit: ${{github.event.pull_request.head.sha}}
name: wheels_windows_x86
path: dist
search_artifacts: true

- name: Download macos_x86_64 wheels
uses: dawidd6/[email protected]
with:
workflow: build_wheels.yml
workflow_conclusion: success
commit: ${{github.event.pull_request.head.sha}}
name: wheels_macos_x86_64
path: dist
search_artifacts: true

- name: Download macos_arm64 wheels
uses: dawidd6/[email protected]
with:
workflow: macos_arm64_wheels.yml
workflow_conclusion: success
commit: ${{github.event.pull_request.head.sha}}
name: wheels_macos_arm64
path: dist
search_artifacts: true

- name: Download linux_x86_64 wheels
uses: dawidd6/[email protected]
with:
workflow: build_wheels.yml
workflow_conclusion: success
commit: ${{github.event.pull_request.head.sha}}
name: wheels_linux_x86_64
path: dist
search_artifacts: true

- name: Download linux_aarch64 wheels
uses: dawidd6/[email protected]
with:
workflow: build_wheels.yml
workflow_conclusion: success
commit: ${{github.event.pull_request.head.sha}}
name: wheels_linux_aarch64
path: dist
search_artifacts: true

Expand Down Expand Up @@ -54,4 +95,4 @@ jobs:
with:
skip_existing: true
verbose: true
print-hash: true
print-hash: true

0 comments on commit a0a5503

Please sign in to comment.