File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1111 runs-on : windows-latest
1212 steps :
1313 - uses : actions/checkout@v3
14- with :
15- fetch-depth : 0
1614 - name : Publish
1715 run : ./build.cmd test publish
1816 env :
Original file line number Diff line number Diff line change @@ -15,8 +15,10 @@ public partial class Build
1515
1616 string TagVersion => GitRepository . Tags . SingleOrDefault ( x => x . StartsWith ( "v" ) ) ? [ 1 ..] ;
1717
18+ bool IsTaggedBuild => ! string . IsNullOrWhiteSpace ( TagVersion ) ;
19+
1820 Target Publish => _ => _
19- . OnlyWhenDynamic ( ( ) => GitRepository . IsOnMainBranch ( ) && ! string . IsNullOrWhiteSpace ( TagVersion ) )
21+ . OnlyWhenDynamic ( ( ) => GitRepository . IsOnMainBranch ( ) && IsTaggedBuild )
2022 . DependsOn ( Pack )
2123 . Requires ( ( ) => NuGetApiKey )
2224 . Executes ( ( ) =>
@@ -44,4 +46,4 @@ public partial class Build
4446 bool PushCompleteOnFailure => true ;
4547 int PushDegreeOfParallelism => 5 ;
4648
47- }
49+ }
You can’t perform that action at this time.
0 commit comments