|
4 | 4 | release:
|
5 | 5 | types: [published]
|
6 | 6 |
|
7 |
| -# on: |
8 |
| -# pull_request: |
9 |
| -# branches: |
10 |
| -# - master |
| 7 | + # pull_request: |
| 8 | + # branches: |
| 9 | + # - master |
11 | 10 |
|
12 | 11 | permissions:
|
13 | 12 | contents: read
|
@@ -60,15 +59,10 @@ jobs:
|
60 | 59 | command: build
|
61 | 60 | args: --release --sdist -o dist -i 3.8 3.9 3.10 3.11 3.12
|
62 | 61 |
|
63 |
| - - name: Generate artifact attestation |
64 |
| - uses: actions/attest-build-provenance@897ed5eab6ed058a474202017ada7f40bfa52940 # v1.0.0 |
65 |
| - with: |
66 |
| - subject-path: 'dist/*' |
67 |
| - |
68 | 62 | - name: Upload wheels
|
69 | 63 | uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # 4.3.3
|
70 | 64 | with:
|
71 |
| - name: wheels-${{ matrix.platform }} |
| 65 | + name: wheels-linux-${{ matrix.platform }} |
72 | 66 | path: dist
|
73 | 67 |
|
74 | 68 | windows:
|
@@ -99,15 +93,10 @@ jobs:
|
99 | 93 | command: build
|
100 | 94 | args: --release -o dist
|
101 | 95 |
|
102 |
| - - name: Generate artifact attestation |
103 |
| - uses: actions/attest-build-provenance@897ed5eab6ed058a474202017ada7f40bfa52940 # v1.0.0 |
104 |
| - with: |
105 |
| - subject-path: 'dist/*' |
106 |
| - |
107 | 96 | - name: Upload wheels
|
108 | 97 | uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # 4.3.3
|
109 | 98 | with:
|
110 |
| - name: wheels |
| 99 | + name: wheels-windows-${{ matrix.python-version }}-${{ matrix.target }} |
111 | 100 | path: dist
|
112 | 101 |
|
113 | 102 | macos:
|
@@ -140,22 +129,19 @@ jobs:
|
140 | 129 | command: build
|
141 | 130 | args: --release -o dist
|
142 | 131 |
|
143 |
| - - name: Generate artifact attestation |
144 |
| - uses: actions/attest-build-provenance@897ed5eab6ed058a474202017ada7f40bfa52940 # v1.0.0 |
145 |
| - with: |
146 |
| - subject-path: 'dist/*' |
147 |
| - |
148 | 132 | - name: Upload wheels
|
149 | 133 | uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # 4.3.3
|
150 | 134 | with:
|
151 |
| - name: wheels-${{ matrix.platform }} |
| 135 | + name: wheels-macos-${{ matrix.python-version }}-${{ matrix.target }} |
152 | 136 | path: dist
|
153 | 137 |
|
154 | 138 | python-release-github:
|
155 | 139 | runs-on: ubuntu-latest
|
156 | 140 | needs: [ macos, windows, linux ]
|
157 | 141 | permissions:
|
158 | 142 | contents: write # To add assets to a release.
|
| 143 | + checks: write |
| 144 | + packages: write |
159 | 145 | steps:
|
160 | 146 | - name: Harden Runner
|
161 | 147 | uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.1.0
|
@@ -188,7 +174,7 @@ jobs:
|
188 | 174 | merge-multiple: true
|
189 | 175 |
|
190 | 176 | - name: Upload release binaries
|
191 |
| - uses: alexellis/upload-assets@13926a61cdb2cb35f5fdef1c06b8b591523236d3 |
| 177 | + uses: alexellis/upload-assets@13926a61cdb2cb35f5fdef1c06b8b591523236d3 # 0.4.1 |
192 | 178 | env:
|
193 | 179 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
194 | 180 | with:
|
|
0 commit comments