Skip to content

Commit 8cf397a

Browse files
committed
chore: Enhance PublishExample function to include error handling and publish with latest tag. Updated command to publish example bundle with an additional step for tagging.
1 parent 3380eff commit 8cf397a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

magefile.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,11 @@ func PublishExample(name string) error {
116116
}
117117

118118
fmt.Printf("Publishing example bundle: %s\n", name)
119-
return shx.Command("porter", "publish", registryFlag).CollapseArgs().In(name).RunV()
119+
err = shx.Command("porter", "publish", registryFlag).CollapseArgs().In(name).RunV()
120+
mgx.Must(err)
121+
122+
// Publish with latest tag
123+
return shx.Command("porter", "publish", "--tag", "latest").CollapseArgs().In(name).RunV()
120124
}
121125

122126
// SetupDCO configures your git repository to automatically sign your commits

0 commit comments

Comments
 (0)