Skip to content

Commit

Permalink
Fix artifact name collision. Future proof old python version builds
Browse files Browse the repository at this point in the history
  • Loading branch information
amykyta3 committed Dec 10, 2024
1 parent f98a9bf commit 649519b
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,26 @@ jobs:
strategy:
matrix:
python-version:
- 3.6
- 3.7
- 3.8
- 3.9
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
include:
- os: ubuntu-latest

# older versions need older OS
- python-version: 3.6
- python-version: "3.6"
os: ubuntu-20.04

- python-version: "3.7"
os: ubuntu-22.04

- python-version: "3.8"
os: ubuntu-22.04

name: python${{ matrix.python-version }}
runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -183,6 +189,7 @@ jobs:

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

#-------------------------------------------------------------------------------
Expand All @@ -205,6 +212,7 @@ jobs:
run: python setup.py sdist

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

Expand All @@ -221,7 +229,6 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1
Expand Down

0 comments on commit 649519b

Please sign in to comment.