Skip to content

Commit d656eb3

Browse files
author
MPCoreDeveloper
committed
fix(ci): Exclude OrchardCore preview packages in CI environments
1 parent da669f4 commit d656eb3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Examples/Web/Orchardcore/SharpCoreDb.Orchardcore/SharpCoreDb.Orchardcore.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@
88
<IsPackable>false</IsPackable>
99
<IsPublishable>false</IsPublishable>
1010
<ExcludeFromSourceBuild>true</ExcludeFromSourceBuild>
11+
<!-- Skip build entirely in CI to avoid package restore failures -->
12+
<ExcludeFromBuild Condition="'$(CI)' == 'true' OR '$(GITHUB_ACTIONS)' == 'true'">true</ExcludeFromBuild>
1113
</PropertyGroup>
1214

13-
<ItemGroup>
15+
<!-- OrchardCore packages only restored when NOT in CI -->
16+
<ItemGroup Condition="'$(CI)' != 'true' AND '$(GITHUB_ACTIONS)' != 'true'">
17+
<!-- Requires OrchardCore preview feed: https://nuget.cloudsmith.io/orchardcore/preview/v3/index.json -->
1418
<PackageReference Include="OrchardCore.Application.Cms.Targets" Version="3.0.0-preview-18884" />
1519
</ItemGroup>
1620

0 commit comments

Comments
 (0)