add side_effects to deploy
All checks were successful
Lambda-Zig Build / build (push) Successful in 27s
All checks were successful
Lambda-Zig Build / build (push) Successful in 27s
This commit is contained in:
parent
5c36a2c979
commit
2bdf23f375
1 changed files with 3 additions and 0 deletions
|
|
@ -135,7 +135,10 @@ pub fn configureBuild(
|
|||
iam_step.dependOn(&iam_cmd.step);
|
||||
|
||||
// Deploy step (depends on package)
|
||||
// NOTE: has_side_effects = true ensures this always runs, since AWS state
|
||||
// can change externally (e.g., function deleted via console)
|
||||
const deploy_cmd = b.addRunArtifact(cli);
|
||||
deploy_cmd.has_side_effects = true;
|
||||
deploy_cmd.step.name = try std.fmt.allocPrint(b.allocator, "{s} deploy", .{cli.name});
|
||||
if (profile) |p| deploy_cmd.addArgs(&.{ "--profile", p });
|
||||
if (region) |r| deploy_cmd.addArgs(&.{ "--region", r });
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue