@@ -2,7 +2,7 @@ name: Publish release files for CD native and non-cd-native environments
22
33on :
44 repository_dispatch :
5- types : [ release-created ]
5+ types : [release-created]
66
77permissions :
88 # Write permissions to call the repository dispatch
@@ -28,14 +28,16 @@ jobs:
2828 # Use the Ubuntu 22.04 image to link with a low version of glibc
2929 #
3030 # https://github.com/topgrade-rs/topgrade/issues/1095
31- platform : [ ubuntu-22.04, macos-latest, macos-15-intel, windows-latest ]
31+ platform : [ubuntu-22.04, macos-latest, macos-15-intel, windows-latest]
3232 runs-on : ${{ matrix.platform }}
33+ timeout-minutes : 90
3334 env :
3435 tag : ${{ github.event.client_payload.tag }}
3536 steps :
3637 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3738 with :
3839 persist-credentials : false
40+ fetch-depth : 1
3941
4042 - name : Install needed components
4143 run : |
@@ -165,13 +167,15 @@ jobs:
165167 # Even though this is cross-compiled, it links to the libc6-<arch>-cross installed on the host
166168 # (see the apt-get install calls below)
167169 runs-on : ubuntu-22.04
170+ timeout-minutes : 120
168171 env :
169172 matrix_target : ${{ matrix.target }}
170173 tag : ${{ github.event.client_payload.tag }}
171174 steps :
172175 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
173176 with :
174177 persist-credentials : false
178+ fetch-depth : 1
175179
176180 - name : Install needed components
177181 run : |
@@ -276,10 +280,8 @@ jobs:
276280 if : ${{ matrix.target == 'aarch64-unknown-linux-gnu' || matrix.target == 'armv7-unknown-linux-gnueabihf' }}
277281 shell : bash
278282
279-
280283 - name : Upload assets
281- run :
282- gh release upload "${tag}" assets/*
284+ run : gh release upload "${tag}" assets/*
283285 env :
284286 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
285287
@@ -290,7 +292,7 @@ jobs:
290292
291293 triggers :
292294 runs-on : ubuntu-latest
293- needs : [ native_build, cross_build ]
295+ needs : [native_build, cross_build]
294296 env :
295297 tag : ${{ github.event.client_payload.tag }}
296298 steps :
0 commit comments