Skip to content

Commit 106104f

Browse files
committed
bug(ci): fix NuGet publish and restore sources
1 parent 74f70a9 commit 106104f

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

.github/workflows/publish_ci.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ jobs:
2323
global-json-file: global.json
2424
dotnet-version: |
2525
8.x
26-
27-
- name: Add the GitHub source
28-
run: dotnet nuget add source --name "github.com" "https://nuget.pkg.github.com/fsprojects/index.json"
29-
3026
- name: Publish to GitHub
3127
env:
3228
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}

NuGet.config

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<configuration>
2+
<packageSources>
3+
<clear />
4+
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
5+
<add key="github.com" value="https://nuget.pkg.github.com/fsprojects/index.json" />
6+
</packageSources>
7+
<packageSourceMapping>
8+
<packageSource key="nuget.org">
9+
<package pattern="*" />
10+
</packageSource>
11+
</packageSourceMapping>
12+
</configuration>

build/build.fs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,9 +483,11 @@ let publishTo (source : PushSource) _ =
483483
}
484484
PushParams = {
485485
o.PushParams with
486+
// TODO: Uncomment when migrated to F# 9
487+
//NoSymbols = source.IsGitHub
486488
Source =
487489
match source with
488-
| NuGet -> None
490+
| NuGet -> Some "nuget.org"
489491
| GitHub -> Some "github.com"
490492
ApiKey =
491493
match source with

0 commit comments

Comments
 (0)