17
17
# under the License.
18
18
#
19
19
20
- name : " Python Release"
20
+ name : " Python Release RC "
21
21
22
22
on :
23
23
workflow_dispatch :
35
35
validate-inputs :
36
36
runs-on : ubuntu-latest
37
37
steps :
38
- - name : Validate Version and RC
38
+ - name : Validate Input Version and RC
39
39
id : validate
40
40
run : |
41
41
# Validate version (e.g., 1.0.0)
50
50
exit 1
51
51
fi
52
52
53
- - name : Release Version
53
+ - name : Echo Release Version
54
54
run : |
55
55
echo "Running Release Version: ${{ github.event.inputs.version }}${{ github.event.inputs.rc }}"
56
56
84
84
exit 1
85
85
fi
86
86
87
- build_svn_artifacts :
87
+ # SVN
88
+ svn_build_artifacts :
88
89
name : Build artifacts for SVN on ${{ matrix.os }}
89
90
runs-on : ${{ matrix.os }}
90
91
needs :
@@ -139,12 +140,11 @@ jobs:
139
140
run : ls -lah dist/* && cp dist/* svn_wheelhouse/
140
141
141
142
- name : Generate SHA512 checksums
142
- if : startsWith(matrix.os, 'ubuntu')
143
143
run : |
144
144
cd svn_wheelhouse
145
145
for name in $(ls pyiceberg-*.whl pyiceberg-*.tar.gz)
146
146
do
147
- shasum -a 512 "${name}" > "${name}.sha512"
147
+ shasum -a 512 "${name}" > "${name}.sha512"
148
148
done
149
149
150
150
- name : Import GPG Key
@@ -155,20 +155,32 @@ jobs:
155
155
passphrase : ${{ secrets.GPG_PASSPHRASE }}
156
156
157
157
- name : Generate GPG signatures
158
- if : startsWith(matrix.os, 'ubuntu')
159
158
run : |
160
159
cd svn_wheelhouse
161
160
for name in $(ls pyiceberg-*.whl pyiceberg-*.tar.gz)
162
161
do
163
- gpg --yes --armor --output "${name}.asc" --detach-sig "${name}"
162
+ gpg --yes --armor --output "${name}.asc" --detach-sig "${name}"
164
163
done
165
164
165
+ # TODO: upload to SVN, all files in pypi_wheelhouse
166
166
- uses : actions/upload-artifact@v4
167
167
with :
168
168
name : " release-svn-${{ matrix.os }}"
169
169
path : ./svn_wheelhouse/*
170
170
171
- build_pypi_artifacts :
171
+ svn_merge_artifacts :
172
+ runs-on : ubuntu-latest
173
+ needs : svn_build_artifacts
174
+ steps :
175
+ - name : Merge Artifacts
176
+ uses : actions/upload-artifact/merge@v4
177
+ with :
178
+ name : " release-svn-${{ github.event.inputs.version }}${{ github.event.inputs.rc }}"
179
+ pattern : release-svn*
180
+ delete-merged : true
181
+
182
+ # PyPi
183
+ pypi_build_artifacts :
172
184
name : Build artifacts for PyPi on ${{ matrix.os }}
173
185
runs-on : ${{ matrix.os }}
174
186
needs :
@@ -225,25 +237,15 @@ jobs:
225
237
if : startsWith(matrix.os, 'ubuntu')
226
238
run : ls -lah dist/* && cp dist/* pypi_wheelhouse/
227
239
240
+ # TODO: upload to PyPi, all files in pypi_wheelhouse
228
241
- uses : actions/upload-artifact@v4
229
242
with :
230
243
name : " release-pypi-${{ matrix.os }}"
231
244
path : ./pypi_wheelhouse/*
232
245
233
- merge_svn_artifacts :
234
- runs-on : ubuntu-latest
235
- needs : build_svn_artifacts
236
- steps :
237
- - name : Merge Artifacts
238
- uses : actions/upload-artifact/merge@v4
239
- with :
240
- name : " release-svn-${{ github.event.inputs.version }}${{ github.event.inputs.rc }}"
241
- pattern : release-svn*
242
- delete-merged : true
243
-
244
- merge_pypi_artifacts :
246
+ pypi_merge_artifacts :
245
247
runs-on : ubuntu-latest
246
- needs : build_pypi_artifacts
248
+ needs : pypi_build_artifacts
247
249
steps :
248
250
- name : Merge Artifacts
249
251
uses : actions/upload-artifact/merge@v4
0 commit comments