2929plan(" publishGettingStarted" ).Dependencies = " prepareRelease" ;
3030plan(" buildDocSearchDb" ).Dependencies = ...
3131 [" publishDocHtml" ," publishExampleHtml" ," publishGettingStarted" ];
32- plan(" package" ).Dependencies = [" check" ," buildDocSearchDb" ];
33- plan(" finalizeRelease" ).Dependencies = " package" ;
3432
3533% Top-level release aggregation task
36- plan(" archive" ).Dependencies = " finalizeRelease " ;
34+ plan(" archive" ).Dependencies = [ " check " , " buildDocSearchDb " ] ;
3735
3836% Set default tasks
3937plan.DefaultTasks = [" check" ," test" ];
@@ -52,11 +50,10 @@ function testTask(context)
5250
5351
5452function prepareReleaseTask(context )
55- % Increment the deploy version for the next packaged release .
53+ % Perform release preparation ahead of documentation generation .
5654
5755rootFolder = string(context .Plan.RootFolder);
5856ensureProjectLoaded(rootFolder );
59- wt .deploy.incrementVersionNumber();
6057
6158end
6259
@@ -101,31 +98,14 @@ function buildDocSearchDbTask(context)
10198end
10299
103100
104- function packageTask(context )
105- % Build the .mltbx release artifact.
106-
107- rootFolder = string(context .Plan.RootFolder);
108- ensureProjectLoaded(rootFolder );
109- wt .deploy.packageRelease(rootFolder );
110-
111- end
112-
113-
114- function finalizeReleaseTask(context )
115- % Perform legacy release finalization side effects.
116-
117- rootFolder = string(context .Plan.RootFolder);
118- ensureProjectLoaded(rootFolder );
119- wt .deploy.finalizeRelease(rootFolder );
120-
121- end
122-
123-
124101function archiveTask(context )
125- % Aggregate the full release workflow under a single entry point .
102+ % Package the toolbox and perform legacy release finalization .
126103
127104rootFolder = string(context .Plan.RootFolder);
128105ensureProjectLoaded(rootFolder );
106+ wt .deploy.incrementVersionNumber();
107+ outputFile = wt .deploy.packageRelease(rootFolder );
108+ wt .deploy.finalizeRelease(rootFolder , outputFile );
129109
130110end
131111
0 commit comments