Skip to content

Commit d886ddf

Browse files
authored
👷 ci: fix artifact name repeat (#7)
1 parent fca73b1 commit d886ddf

File tree

1 file changed

+35
-30
lines changed

1 file changed

+35
-30
lines changed

.github/workflows/release.yaml

Lines changed: 35 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,16 @@ jobs:
1010
release-build:
1111
runs-on: ${{ matrix.platform.runner }}
1212
strategy:
13-
matrix:
14-
platform:
15-
- runner: ubuntu-latest
16-
os: linux
17-
target: x86_64
18-
- runner: ubuntu-latest
19-
os: linux
20-
target: aarch64
21-
- runner: ubuntu-latest
22-
os: linux
23-
target: i386
24-
- runner: windows-latest
25-
os: win
26-
target: amd64
27-
- runner: windows-latest
28-
os: win
29-
target: arm64
30-
- runner: windows-latest
31-
os: win
32-
target: i386
33-
- runner: macos-latest
34-
os: mac
35-
target: x86_64
36-
- runner: macos-latest
37-
os: mac
38-
target: arm64
13+
matrix:
14+
platform:
15+
- {"runner": "ubuntu-latest", "os": "linux", "target": "x86_64"}
16+
- {"runner": "ubuntu-latest", "os": "linux", "target": "aarch64"}
17+
- {"runner": "ubuntu-latest", "os": "linux", "target": "i386"}
18+
- {"runner": "windows-latest", "os": "win", "target": "amd64"}
19+
- {"runner": "windows-latest", "os": "win", "target": "arm64"}
20+
- {"runner": "windows-latest", "os": "win", "target": "i386"}
21+
- {"runner": "macos-latest", "os": "mac", "target": "x86_64"}
22+
- {"runner": "macos-latest", "os": "mac", "target": "arm64"}
3923
steps:
4024
- name: Checkout
4125
uses: actions/checkout@v4
@@ -55,7 +39,7 @@ jobs:
5539
- name: upload dists
5640
uses: actions/upload-artifact@v4
5741
with:
58-
name: release-dists
42+
name: ${{ matrix.platform.os }}-${{ matrix.platform.target }}
5943
path: dist/
6044

6145
publish-pypi:
@@ -66,12 +50,22 @@ jobs:
6650
- release-build
6751
permissions:
6852
id-token: write
69-
53+
strategy:
54+
matrix:
55+
platform:
56+
- {"runner": "ubuntu-latest", "os": "linux", "target": "x86_64"}
57+
- {"runner": "ubuntu-latest", "os": "linux", "target": "aarch64"}
58+
- {"runner": "ubuntu-latest", "os": "linux", "target": "i386"}
59+
- {"runner": "windows-latest", "os": "win", "target": "amd64"}
60+
- {"runner": "windows-latest", "os": "win", "target": "arm64"}
61+
- {"runner": "windows-latest", "os": "win", "target": "i386"}
62+
- {"runner": "macos-latest", "os": "mac", "target": "x86_64"}
63+
- {"runner": "macos-latest", "os": "mac", "target": "arm64"}
7064
steps:
7165
- name: Retrieve release distributions
7266
uses: actions/download-artifact@v4
7367
with:
74-
name: release-dists
68+
name: ${{ matrix.platform.os }}-${{ matrix.platform.target }}
7569
path: dist/
7670

7771
- name: Install uv
@@ -88,10 +82,21 @@ jobs:
8882
- release-build
8983
permissions:
9084
contents: write
85+
strategy:
86+
matrix:
87+
platform:
88+
- {"runner": "ubuntu-latest", "os": "linux", "target": "x86_64"}
89+
- {"runner": "ubuntu-latest", "os": "linux", "target": "aarch64"}
90+
- {"runner": "ubuntu-latest", "os": "linux", "target": "i386"}
91+
- {"runner": "windows-latest", "os": "win", "target": "amd64"}
92+
- {"runner": "windows-latest", "os": "win", "target": "arm64"}
93+
- {"runner": "windows-latest", "os": "win", "target": "i386"}
94+
- {"runner": "macos-latest", "os": "mac", "target": "x86_64"}
95+
- {"runner": "macos-latest", "os": "mac", "target": "arm64"}
9196
steps:
9297
- uses: actions/download-artifact@v4
9398
with:
94-
name: release-dists
99+
name: ${{ matrix.platform.os }}-${{ matrix.platform.target }}
95100
path: dist/
96101
- name: Get tag name
97102
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

0 commit comments

Comments
 (0)