diff --git a/.github/workflows/deploy-build.yml b/.github/workflows/deploy-build.yml index 8ba84487..24392698 100644 --- a/.github/workflows/deploy-build.yml +++ b/.github/workflows/deploy-build.yml @@ -55,6 +55,8 @@ jobs: 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 }}/" ./S1APILoader/S1APILoader.cs + 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 @@ -99,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 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 diff --git a/S1API/S1API.csproj b/S1API/S1API.csproj index 418bcc38..6cd6bb8a 100644 --- a/S1API/S1API.csproj +++ b/S1API/S1API.csproj @@ -18,6 +18,7 @@ S1API true latest + $(Version) @@ -103,7 +104,7 @@ - + diff --git a/S1APILoader/S1APILoader.csproj b/S1APILoader/S1APILoader.csproj index b664e6a4..f242e1d2 100644 --- a/S1APILoader/S1APILoader.csproj +++ b/S1APILoader/S1APILoader.csproj @@ -11,6 +11,7 @@ Il2CppMelon;MonoBepInEx;MonoMelon;Il2CppBepInEx AnyCPU S1APILoader + $(Version)