Skip to content

Commit 1409bc4

Browse files
authored
chore(ci): fix uploads of release artifacts (#2891)
## Description <!-- A summary of what this pull request achieves and a rough list of changes. --> ## Breaking Changes <!-- Optional, if there are any breaking changes document them, including how to migrate older code. --> ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist - [ ] Self-review. - [ ] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [ ] Tests if relevant. - [ ] All breaking changes documented.
1 parent fcf89a6 commit 1409bc4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ jobs:
255255
ASSETS+="$staging.tar.gz,"
256256
done
257257
echo "ASSET=$(echo $ASSETS | sed 's/,$//')" >> $GITHUB_ENV
258+
echo "ASSET_MULTI_LINE=$(echo $ASSETS | sed 's/,/\\n/g')" >> $GITHUB_ENV
258259
259260
- name: Build archives (windows)
260261
if: matrix.os == 'windows-latest'
@@ -272,7 +273,9 @@ jobs:
272273
Set-Location -Path ..
273274
}
274275
$ASSETS = $ASSETS -join ','
276+
$ASSETS_MULTI_LINE = $ASSETS -replace ',', "`n"
275277
Add-Content -Path $env:GITHUB_ENV -Value "ASSET=$ASSETS"
278+
Add-Content -Path $env:GITHUB_ENV -Value "ASSET_MULTI_LINE=$ASSETS_MULTI_LINE"
276279
277280
- uses: n0-computer/actions-upload-release-asset@main
278281
if: (github.event.inputs.upload_artifacts == 'true' || github.event_name == 'push')
@@ -284,7 +287,8 @@ jobs:
284287
uses: actions/upload-artifact@v4
285288
with:
286289
name: iroh-${{env.RELEASE_OS }}-${{env.RELEASE_ARCH}}-bundle
287-
path: ${{ env.ASSET }}
290+
path: |
291+
${{ env.ASSET_MULTI_LINE }}
288292
compression-level: 0
289293

290294
docker:

0 commit comments

Comments
 (0)