diff --git a/.github/workflows/lib-nuget.yml b/.github/workflows/lib-nuget.yml new file mode 100644 index 0000000..8bfb521 --- /dev/null +++ b/.github/workflows/lib-nuget.yml @@ -0,0 +1,27 @@ +name: YaeLib NuGet Publish + +on: + workflow_dispatch: + +jobs: + publish: + runs-on: windows-latest + + steps: + - name: Checkout Repo + uses: actions/checkout@v2 + + - name: Setup MSBuild + uses: microsoft/setup-msbuild@v2 + + - name: Restore NuGet Packages + run: nuget restore lib\YaeAchievementLib.sln + + - name: Build + run: msbuild lib\YaeAchievementLib.sln /p:Configuration=Release + + - name: Pack + run: nuget pack lib\YaeAchievementLib.nuspec + + - name: Publish to NuGet + run: nuget push *.nupkg ${{ secrets.NUGET_API_KEY }} -src https://api.nuget.org/v3/index.json diff --git a/lib/YaeAchievementLib.nuspec b/lib/YaeAchievementLib.nuspec new file mode 100644 index 0000000..3e0327d --- /dev/null +++ b/lib/YaeAchievementLib.nuspec @@ -0,0 +1,17 @@ + + + Yae.Lib + 5.3.0 + HolographicHat + true + false + GPL-3.0-only + https://licenses.nuget.org/GPL-3.0-only + https://github.com/HolographicHat/Yae + Yae Lib + + + + + + diff --git a/lib/YaeAchievementLib.vcxproj b/lib/YaeAchievementLib.vcxproj index 27b6b47..30eeace 100644 --- a/lib/YaeAchievementLib.vcxproj +++ b/lib/YaeAchievementLib.vcxproj @@ -53,6 +53,7 @@ $(SolutionDir)build\$(Platform)\$(Configuration)\ build\$(Platform)\$(Configuration)\ false + YaeLib