Skip to content

Commit 292b5e4

Browse files
authored
ci: Fix release workflow (#359)
join([...], '\n') does not in fact create a newline-delimited string...
1 parent ec13c3c commit 292b5e4

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/celest_cli.release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,5 @@ jobs:
6262
if: github.ref_type == 'tag'
6363
uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # 2.2.2
6464
with:
65-
release_name: v${{ steps.bundle.outputs.version }}
66-
files: ${{ join(fromJson(steps.bundle.outputs.artifacts), '\n') }}
65+
name: v${{ steps.bundle.outputs.version }}
66+
files: ${{ steps.bundle.outputs.artifacts }}

apps/cli/tool/release.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,12 @@ Future<void> main(List<String> args) async {
8282

8383
if (platform.environment['GITHUB_OUTPUT'] case final ciOutput?) {
8484
fileSystem.file(ciOutput).writeAsStringSync(
85-
'version=$version\n'
86-
'artifacts=${jsonEncode(artifacts)}\n',
85+
[
86+
'version=$version',
87+
'artifacts<<EOF',
88+
...artifacts,
89+
'EOF',
90+
].join('\n'),
8791
mode: FileMode.append,
8892
flush: true,
8993
);

0 commit comments

Comments
 (0)