Skip to content

Commit 3df7198

Browse files
committed
Update CI for SDK
1 parent a70bf68 commit 3df7198

3 files changed

Lines changed: 13 additions & 14 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- name: Setup Dotnet
4444
uses: actions/setup-dotnet@v4
4545
with:
46-
dotnet-version: 9.x
46+
dotnet-version: 10.x
4747
source-url: https://nuget.pkg.github.com/ResoniteModdingGroup/index.json
4848

4949
- name: Add MonkeyLoader NuGet Source
@@ -69,10 +69,6 @@ jobs:
6969

7070
- name: Move NuGet Packages
7171
run: mv (Get-ChildItem -Recurse ./ -Include *.nupkg) ./
72-
73-
# Removes the version number from the package name
74-
- name: Rename NuGet Packages
75-
run: Get-ChildItem -Include *.nupkg -Path ./* | Rename-Item -NewName { $_.Name -Replace '\.\d+\.\d+\.\d+.*$','.nupkg' }
7672

7773
# Publish the NuGet package(s) as an artifact, so they can be used in the following jobs
7874
- name: Upload NuGet Packages Artifact
@@ -81,7 +77,7 @@ jobs:
8177
name: NuGet Packages
8278
if-no-files-found: error
8379
retention-days: 7
84-
path: ./*.nupkg
80+
path: ./CommunityBugFixCollection.nupkg
8581

8682
# Only when it's not from a PR to avoid any funny packages in the cache
8783
- name: Save NuGet Package Cache
@@ -98,12 +94,9 @@ jobs:
9894
- name: Setup Dotnet
9995
uses: actions/setup-dotnet@v4
10096
with:
101-
dotnet-version: 9.x
97+
dotnet-version: 10.x
10298
source-url: https://nuget.pkg.github.com/ResoniteModdingGroup/index.json
10399

104-
- name: Add MonkeyLoader NuGet Source
105-
run: dotnet nuget add source https://pkg.munally.com/MonkeyModdingTroop/index.json
106-
107100
- name: Restore NuGet Package Cache
108101
uses: actions/cache/restore@v4
109102
with:

.github/workflows/publish.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,8 @@ jobs:
6868
- name: Setup Dotnet
6969
uses: actions/setup-dotnet@v4
7070
with:
71-
dotnet-version: 9.x
71+
dotnet-version: 10.x
7272
source-url: https://nuget.pkg.github.com/ResoniteModdingGroup/index.json
73-
74-
- name: Add MonkeyLoader NuGet Source
75-
run: dotnet nuget add source https://pkg.munally.com/MonkeyModdingTroop/index.json
7673

7774
# Publish all NuGet packages to the GitHub feed
7875
# Use --skip-duplicate to prevent errors if a package with the same version already exists.

CommunityBugFixCollection.sln

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1111
README.md = README.md
1212
EndProjectSection
1313
EndProject
14+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{02EA681E-C7D8-13C7-8484-4AC65E1B71E8}"
15+
ProjectSection(SolutionItems) = preProject
16+
.github\workflows\build.yml = .github\workflows\build.yml
17+
.github\workflows\publish.yml = .github\workflows\publish.yml
18+
EndProjectSection
19+
EndProject
1420
Global
1521
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1622
Debug|Any CPU = Debug|Any CPU
@@ -25,6 +31,9 @@ Global
2531
GlobalSection(SolutionProperties) = preSolution
2632
HideSolutionNode = FALSE
2733
EndGlobalSection
34+
GlobalSection(NestedProjects) = preSolution
35+
{02EA681E-C7D8-13C7-8484-4AC65E1B71E8} = {07124CF9-EE3D-4A7E-A2F8-8FD07966E423}
36+
EndGlobalSection
2837
GlobalSection(ExtensibilityGlobals) = postSolution
2938
SolutionGuid = {7D505B2E-FBA2-4F50-BC1C-838BC8DF0D5C}
3039
EndGlobalSection

0 commit comments

Comments
 (0)