Skip to content

Commit 656f499

Browse files
committed
download/upload
1 parent c1da66c commit 656f499

File tree

1 file changed

+37
-7
lines changed

1 file changed

+37
-7
lines changed

.github/workflows/python-release.yml

Lines changed: 37 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -139,40 +139,70 @@ jobs:
139139
if: startsWith(matrix.os, 'ubuntu')
140140
run: ls -lah dist/* && cp dist/* svn_wheelhouse/
141141

142+
# TODO: upload to SVN, all files in pypi_wheelhouse
143+
- uses: actions/upload-artifact@v4
144+
with:
145+
name: "release-svn-${{ matrix.os }}"
146+
path: ./svn_wheelhouse/*
147+
148+
svn_generate_checksums:
149+
name: Generate SHA512 checksums
150+
runs-on: ubuntu-latest
151+
needs: svn_build_artifacts
152+
steps:
153+
- name: Download All SVN Artifacts
154+
uses: actions/download-artifact@v4
155+
with:
156+
path: svn_wheelhouse
157+
pattern: release-svn-*
158+
merge-multiple: true
142159
- name: Generate SHA512 checksums
143-
shell: bash # required for windows
144160
run: |
145161
cd svn_wheelhouse
146162
for name in $(ls pyiceberg-*.whl pyiceberg-*.tar.gz)
147163
do
148164
shasum -a 512 "${name}" > "${name}.sha512"
149165
done
166+
- uses: actions/upload-artifact@v4
167+
with:
168+
name: "release-svn-sha-checksums"
169+
path: ./svn_wheelhouse/*
150170

171+
svn_generate_signatures:
172+
name: Generate GPG Signatures
173+
runs-on: ubuntu-latest
174+
needs: svn_build_artifacts
175+
steps:
176+
- name: Download All SVN Artifacts
177+
uses: actions/download-artifact@v4
178+
with:
179+
path: svn_wheelhouse
180+
pattern: release-svn-*
181+
merge-multiple: true
151182
- name: Import GPG Key
152183
id: import_gpg
153184
uses: crazy-max/ghaction-import-gpg@111c56156bcc6918c056dbef52164cfa583dc549
154185
with:
155186
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
156187
passphrase: ${{ secrets.GPG_PASSPHRASE }}
157-
158188
- name: Generate GPG signatures
159-
shell: bash # required for windows
160189
run: |
161190
cd svn_wheelhouse
162191
for name in $(ls pyiceberg-*.whl pyiceberg-*.tar.gz)
163192
do
164193
gpg --yes --armor --output "${name}.asc" --detach-sig "${name}"
165194
done
166-
167-
# TODO: upload to SVN, all files in pypi_wheelhouse
168195
- uses: actions/upload-artifact@v4
169196
with:
170-
name: "release-svn-${{ matrix.os }}"
197+
name: "release-svn-gpg-signatures"
171198
path: ./svn_wheelhouse/*
172199

173200
svn_merge_artifacts:
174201
runs-on: ubuntu-latest
175-
needs: svn_build_artifacts
202+
needs:
203+
- svn_build_artifacts
204+
- svn_generate_checksums
205+
- svn_generate_signatures
176206
steps:
177207
- name: Merge Artifacts
178208
uses: actions/upload-artifact/merge@v4

0 commit comments

Comments
 (0)