Skip to content

Commit af28cb8

Browse files
authored
ci: Publish multiple wheel fix (#274)
1 parent f9d741d commit af28cb8

File tree

1 file changed

+9
-23
lines changed

1 file changed

+9
-23
lines changed

.github/workflows/publish.yaml

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ on:
44
release:
55
types: [published]
66

7-
# on:
8-
# pull_request:
9-
# branches:
10-
# - master
7+
# pull_request:
8+
# branches:
9+
# - master
1110

1211
permissions:
1312
contents: read
@@ -60,15 +59,10 @@ jobs:
6059
command: build
6160
args: --release --sdist -o dist -i 3.8 3.9 3.10 3.11 3.12
6261

63-
- name: Generate artifact attestation
64-
uses: actions/attest-build-provenance@897ed5eab6ed058a474202017ada7f40bfa52940 # v1.0.0
65-
with:
66-
subject-path: 'dist/*'
67-
6862
- name: Upload wheels
6963
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # 4.3.3
7064
with:
71-
name: wheels-${{ matrix.platform }}
65+
name: wheels-linux-${{ matrix.platform }}
7266
path: dist
7367

7468
windows:
@@ -99,15 +93,10 @@ jobs:
9993
command: build
10094
args: --release -o dist
10195

102-
- name: Generate artifact attestation
103-
uses: actions/attest-build-provenance@897ed5eab6ed058a474202017ada7f40bfa52940 # v1.0.0
104-
with:
105-
subject-path: 'dist/*'
106-
10796
- name: Upload wheels
10897
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # 4.3.3
10998
with:
110-
name: wheels
99+
name: wheels-windows-${{ matrix.python-version }}-${{ matrix.target }}
111100
path: dist
112101

113102
macos:
@@ -140,22 +129,19 @@ jobs:
140129
command: build
141130
args: --release -o dist
142131

143-
- name: Generate artifact attestation
144-
uses: actions/attest-build-provenance@897ed5eab6ed058a474202017ada7f40bfa52940 # v1.0.0
145-
with:
146-
subject-path: 'dist/*'
147-
148132
- name: Upload wheels
149133
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # 4.3.3
150134
with:
151-
name: wheels-${{ matrix.platform }}
135+
name: wheels-macos-${{ matrix.python-version }}-${{ matrix.target }}
152136
path: dist
153137

154138
python-release-github:
155139
runs-on: ubuntu-latest
156140
needs: [ macos, windows, linux ]
157141
permissions:
158142
contents: write # To add assets to a release.
143+
checks: write
144+
packages: write
159145
steps:
160146
- name: Harden Runner
161147
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.1.0
@@ -188,7 +174,7 @@ jobs:
188174
merge-multiple: true
189175

190176
- name: Upload release binaries
191-
uses: alexellis/upload-assets@13926a61cdb2cb35f5fdef1c06b8b591523236d3
177+
uses: alexellis/upload-assets@13926a61cdb2cb35f5fdef1c06b8b591523236d3 # 0.4.1
192178
env:
193179
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
194180
with:

0 commit comments

Comments
 (0)