Skip to content

Commit 308fe64

Browse files
committed
CI: fix release deployment
1 parent 829f566 commit 308fe64

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/artifacts.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ jobs:
7575
- name: Publish release
7676
if: env.SKIP_DEPLOY != 'true'
7777
run: |
78+
set -o pipefail
7879
zig run .github/workflows/prepare_release_payload.zig | curl --request POST --user admin:${ZLS_WORKER_API_TOKEN} --header "Content-Type: application/json" --data @- https://releases.zigtools.org/v1/zls/publish
7980
env:
8081
ZLS_WORKER_API_TOKEN: ${{ secrets.ZLS_WORKER_API_TOKEN }}

.github/workflows/prepare_release_payload.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub fn main() !void {
1212
var arena_allocator: std.heap.ArenaAllocator = .init(std.heap.page_allocator);
1313
const arena = arena_allocator.allocator();
1414

15-
const metadata_source = try std.fs.cwd().readFileAlloc(arena, "zig-out/release.json", std.math.maxInt(u32));
15+
const metadata_source = try std.fs.cwd().readFileAlloc("zig-out/release.json", arena, .limited(std.math.maxInt(u32)));
1616
const artifacts_dir = try std.fs.cwd().openDir("zig-out/artifacts", .{ .iterate = true });
1717
const metadata = try std.json.parseFromSliceLeaky(Metadata, arena, metadata_source, .{});
1818

0 commit comments

Comments
 (0)