Skip to content

Commit 97e3464

Browse files
author
MPCoreDeveloper
committed
CI: Fix GitHub Actions pipeline - Add NuGet preview feeds for OrchardCore packages
1 parent 99daa62 commit 97e3464

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ jobs:
2929
uses: actions/setup-dotnet@v4
3030
with:
3131
dotnet-version: ${{ env.DOTNET_VERSION }}
32+
33+
- name: Configure NuGet feeds for previews
34+
run: |
35+
dotnet nuget add source https://api.nuget.org/v3/index.json --name nuget.org
36+
dotnet nuget add source https://myget.org/F/orchardcore-preview/api/v3/index.json --name orchardcore-preview --configfile NuGet.Config || true
37+
shell: bash
3238

3339
- name: Restore dependencies
3440
run: dotnet restore SharpCoreDB.CI.slnf

NuGet.Config

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<packageSources>
4+
<!-- Official NuGet feed -->
5+
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
6+
7+
<!-- OrchardCore Preview feed for preview packages -->
8+
<add key="orchardcore-preview" value="https://myget.org/F/orchardcore-preview/api/v3/index.json" />
9+
10+
<!-- OrchardCore nightly feed (fallback) -->
11+
<add key="orchardcore-nightly" value="https://myget.org/F/orchardcore-nightly/api/v3/index.json" />
12+
</packageSources>
13+
14+
<packageSourceCredentials>
15+
<!-- Add credentials here if needed for private feeds -->
16+
</packageSourceCredentials>
17+
18+
<!-- Disable default sources if needed -->
19+
<disabledPackageSources>
20+
</disabledPackageSources>
21+
22+
<!-- Trust settings for feeds -->
23+
<trustedSigners>
24+
<author name="Microsoft">
25+
<certificate fingerprint="0E5F38F57606B652F25B13BF63D56AC13127D08C" hashAlgorithm="SHA256" />
26+
</author>
27+
</trustedSigners>
28+
</configuration>

0 commit comments

Comments
 (0)