Skip to content

Commit dfca313

Browse files
committed
Only deploy storybook from main
1 parent 91141a7 commit dfca313

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

_build/Build.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"Publish_Site",
5151
GitHubActionsImage.UbuntuLatest,
5252
ImportSecrets = new[] { nameof(GithubToken) },
53-
OnPushBranches = new[] { "main", "master", "release/*" },
53+
OnPushBranches = new[] { "main", "master" },
5454
InvokedTargets = new[] { nameof(PublishSite) },
5555
FetchDepth = 0,
5656
CacheKeyFiles = new string[] {}
@@ -145,9 +145,6 @@ class Build : NukeBuild
145145
.SetCommand("test")
146146
.SetProcessWorkingDirectory(StencilDirectory));
147147
}
148-
NpmRun(s => s
149-
.SetProcessWorkingDirectory(StencilDirectory)
150-
.SetCommand("build-storybook"));
151148
});
152149
Target SetupGithubActor => _ => _
153150
.Executes(() =>
@@ -280,6 +277,9 @@ class Build : NukeBuild
280277
.DependsOn(Compile)
281278
.Executes(() =>
282279
{
280+
NpmRun(s => s
281+
.SetProcessWorkingDirectory(StencilDirectory)
282+
.SetCommand("build-storybook"));
283283
NpmRun(s => s
284284
.SetProcessWorkingDirectory(StencilDirectory)
285285
.SetCommand("deploy-storybook"));

0 commit comments

Comments
 (0)