Skip to content

Commit 05d9118

Browse files
committed
V5.0.0
1 parent 24b7f78 commit 05d9118

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/workflow.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ on:
88

99
jobs:
1010
build:
11-
name: Build for Python ${{ matrix.python-version }}
12-
runs-on: ubuntu-latest
11+
name: Build for Python ${{ matrix.python-version }} on ${{ matrix.os }}
12+
runs-on: ${{ matrix.os }}
1313
if: startsWith(github.ref, 'refs/tags/v')
1414
strategy:
1515
matrix:
16+
os: [ubuntu-latest, windows-latest, macos-latest]
1617
python-version: ["3.12", "3.13"]
1718
steps:
1819
- uses: actions/checkout@v4
@@ -37,16 +38,17 @@ jobs:
3738
poetry build
3839
3940
- name: Copy artifacts
41+
shell: bash
4042
run: |
41-
mkdir -p dist-py${{ matrix.python-version }}
42-
cp dist/*.whl dist-py${{ matrix.python-version }}/
43-
cp dist/*.tar.gz dist-py${{ matrix.python-version }}/
43+
mkdir -p dist-py${{ matrix.python-version }}-${{ matrix.os }}
44+
cp dist/*.whl dist-py${{ matrix.python-version }}-${{ matrix.os }}/ || true
45+
cp dist/*.tar.gz dist-py${{ matrix.python-version }}-${{ matrix.os }}/ || true
4446
45-
- name: Upload Python ${{ matrix.python-version }} artifacts
47+
- name: Upload Python ${{ matrix.python-version }} ${{ matrix.os }} artifacts
4648
uses: actions/upload-artifact@v4
4749
with:
48-
name: python-packages-${{ matrix.python-version }}
49-
path: dist-py${{ matrix.python-version }}/
50+
name: python-packages-${{ matrix.python-version }}-${{ matrix.os }}
51+
path: dist-py${{ matrix.python-version }}-${{ matrix.os }}/
5052
retention-days: 7
5153

5254
release:

0 commit comments

Comments
 (0)