Skip to content

Commit

Permalink
chore(actions): unique name for each wheel uploaded to the artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
portellaa committed Sep 10, 2024
1 parent 829ddcc commit 06f8bd9
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,20 +95,23 @@ jobs:
uses: actions/upload-artifact@v4
with:
retention-days: 1
name: compiled-wheels
name: compiled-wheels-${{ github.run_id }}-${{ github.run_attempt }}-${{ matrix.python-version }}
path: wheels/


upload-assets:
name: Upload Assets to Release
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

needs: compile-wheels

steps:
- uses: actions/download-artifact@v4
with:
name: compiled-wheels
name: compiled-wheels-${{ github.run_id }}-${{ github.run_attempt }}-${{ matrix.python-version }}
path: dist/

- uses: AButler/[email protected]
Expand All @@ -121,13 +124,16 @@ jobs:
publish-pypi:
name: Publish packages to PyPi
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

needs: compile-wheels

steps:
- uses: actions/download-artifact@v4
with:
name: compiled-wheels
name: compiled-wheels-${{ github.run_id }}-${{ github.run_attempt }}-${{ matrix.python-version }}
path: dist/

- uses: pypa/[email protected]
Expand Down

0 comments on commit 06f8bd9

Please sign in to comment.