From a7256e6467153c69d338c713c1cb30c8006dbb19 Mon Sep 17 00:00:00 2001 From: Doug Murphy Date: Sun, 11 May 2025 16:29:04 -0400 Subject: [PATCH 1/5] Add .github folder as a solution folder for convenient access. --- S1API.sln | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/S1API.sln b/S1API.sln index 72b17c00..a0de5e14 100644 --- a/S1API.sln +++ b/S1API.sln @@ -4,6 +4,12 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "S1API", "S1API\S1API.csproj EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "S1APILoader", "S1APILoader\S1APILoader.csproj", "{B97277C2-27FE-4BB9-AB5A-D479C8DF6827}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{C090D161-6958-471A-A97B-DBFB36EE57DA}" + ProjectSection(SolutionItems) = preProject + .github\workflows\deploy-build.yml = .github\workflows\deploy-build.yml + .github\workflows\verify-build.yml = .github\workflows\verify-build.yml + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution MonoBepInEx|Any CPU = MonoBepInEx|Any CPU From e9c618a34f1665c7aa3aa4d9f6ae58b7aa032a35 Mon Sep 17 00:00:00 2001 From: Doug Murphy Date: Sun, 11 May 2025 16:34:01 -0400 Subject: [PATCH 2/5] Add to csproj so that assemblies are versioned too. --- .github/workflows/deploy-build.yml | 2 ++ S1API/S1API.csproj | 1 + S1APILoader/S1APILoader.csproj | 1 + 3 files changed, 4 insertions(+) diff --git a/.github/workflows/deploy-build.yml b/.github/workflows/deploy-build.yml index 8ba84487..73ced7ec 100644 --- a/.github/workflows/deploy-build.yml +++ b/.github/workflows/deploy-build.yml @@ -54,7 +54,9 @@ jobs: - name: Update MelonInfo version for S1API and S1APILoader run: | sed -i "s/{VERSION_NUMBER}/${{ steps.semantic-release.outputs.new_release_version }}/" ./S1API/S1API.cs + sed -i "s/{VERSION_NUMBER}/${{ steps.semantic-release.outputs.new_release_version }}/" ./S1API/S1API.csproj sed -i "s/{VERSION_NUMBER}/${{ steps.semantic-release.outputs.new_release_version }}/" ./S1APILoader/S1APILoader.cs + sed -i "s/{VERSION_NUMBER}/${{ steps.semantic-release.outputs.new_release_version }}/" ./S1APILoader/S1APILoader.csproj - name: Run .NET build for MonoBepInEx run: dotnet build ./S1API.sln -c MonoBepInEx -f netstandard2.1 diff --git a/S1API/S1API.csproj b/S1API/S1API.csproj index 418bcc38..f5ea9551 100644 --- a/S1API/S1API.csproj +++ b/S1API/S1API.csproj @@ -18,6 +18,7 @@ S1API true latest + ${VERSION_NUMBER} diff --git a/S1APILoader/S1APILoader.csproj b/S1APILoader/S1APILoader.csproj index b664e6a4..a3e86076 100644 --- a/S1APILoader/S1APILoader.csproj +++ b/S1APILoader/S1APILoader.csproj @@ -11,6 +11,7 @@ Il2CppMelon;MonoBepInEx;MonoMelon;Il2CppBepInEx AnyCPU S1APILoader + ${VERSION_NUMBER} From 292fdb2ade7b8277ecad7673d7368045e9c8539c Mon Sep 17 00:00:00 2001 From: Doug Murphy Date: Sun, 11 May 2025 16:37:03 -0400 Subject: [PATCH 3/5] Remove PackageVersion argument as it is no longer necessary. --- .github/workflows/deploy-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-build.yml b/.github/workflows/deploy-build.yml index 73ced7ec..a334b666 100644 --- a/.github/workflows/deploy-build.yml +++ b/.github/workflows/deploy-build.yml @@ -101,7 +101,7 @@ jobs: libraries - name: Pack NuGet package - run: dotnet pack ./S1API/S1API.csproj -c MonoMelon --output ./nupkg /p:PackageVersion=${{ steps.semantic-release.outputs.new_release_version }} + run: dotnet pack ./S1API/S1API.csproj -c MonoMelon --output ./nupkg - name: Push to NuGet Gallery run: dotnet nuget push ./nupkg/*.nupkg --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json From 01ce7560c2b82acd28e70778ecbebbe5d8585a99 Mon Sep 17 00:00:00 2001 From: Doug Murphy Date: Sun, 11 May 2025 16:40:29 -0400 Subject: [PATCH 4/5] Replace placeholder with something that still compiles outside of GHA. --- .github/workflows/deploy-build.yml | 4 ++-- S1API/S1API.csproj | 2 +- S1APILoader/S1APILoader.csproj | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-build.yml b/.github/workflows/deploy-build.yml index a334b666..24392698 100644 --- a/.github/workflows/deploy-build.yml +++ b/.github/workflows/deploy-build.yml @@ -54,9 +54,9 @@ jobs: - name: Update MelonInfo version for S1API and S1APILoader run: | sed -i "s/{VERSION_NUMBER}/${{ steps.semantic-release.outputs.new_release_version }}/" ./S1API/S1API.cs - sed -i "s/{VERSION_NUMBER}/${{ steps.semantic-release.outputs.new_release_version }}/" ./S1API/S1API.csproj sed -i "s/{VERSION_NUMBER}/${{ steps.semantic-release.outputs.new_release_version }}/" ./S1APILoader/S1APILoader.cs - sed -i "s/{VERSION_NUMBER}/${{ steps.semantic-release.outputs.new_release_version }}/" ./S1APILoader/S1APILoader.csproj + sed -i "s/$(Version)/${{ steps.semantic-release.outputs.new_release_version }}/" ./S1API/S1API.csproj + sed -i "s/$(Version)/${{ steps.semantic-release.outputs.new_release_version }}/" ./S1APILoader/S1APILoader.csproj - name: Run .NET build for MonoBepInEx run: dotnet build ./S1API.sln -c MonoBepInEx -f netstandard2.1 diff --git a/S1API/S1API.csproj b/S1API/S1API.csproj index f5ea9551..fb455bcf 100644 --- a/S1API/S1API.csproj +++ b/S1API/S1API.csproj @@ -18,7 +18,7 @@ S1API true latest - ${VERSION_NUMBER} + $(Version) diff --git a/S1APILoader/S1APILoader.csproj b/S1APILoader/S1APILoader.csproj index a3e86076..f242e1d2 100644 --- a/S1APILoader/S1APILoader.csproj +++ b/S1APILoader/S1APILoader.csproj @@ -11,7 +11,7 @@ Il2CppMelon;MonoBepInEx;MonoMelon;Il2CppBepInEx AnyCPU S1APILoader - ${VERSION_NUMBER} + $(Version) From a9d96941af5366b8292121d987763842e3303673 Mon Sep 17 00:00:00 2001 From: Doug Murphy Date: Sun, 11 May 2025 16:51:19 -0400 Subject: [PATCH 5/5] Fix typo in config with post-build copy action. --- S1API/S1API.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/S1API/S1API.csproj b/S1API/S1API.csproj index fb455bcf..6cd6bb8a 100644 --- a/S1API/S1API.csproj +++ b/S1API/S1API.csproj @@ -104,7 +104,7 @@ - +