[skip_ci] Merge pull request #127 from qhy040404/nuget

This commit is contained in:
HolographicHat
2025-01-27 21:04:42 +08:00
committed by GitHub
3 changed files with 45 additions and 0 deletions

27
.github/workflows/lib-nuget.yml vendored Normal file
View File

@@ -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

View File

@@ -0,0 +1,17 @@
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>Yae.Lib</id>
<version>5.3.0</version>
<authors>HolographicHat</authors>
<developmentDependency>true</developmentDependency>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<license type="expression">GPL-3.0-only</license>
<licenseUrl>https://licenses.nuget.org/GPL-3.0-only</licenseUrl>
<projectUrl>https://github.com/HolographicHat/Yae</projectUrl>
<description>Yae Lib</description>
<repository type="git" url="https://github.com/HolographicHat/Yae" commit="$commit$" />
</metadata>
<files>
<file src="build\x64\Release\YaeLib.dll" target="runtimes\win-x64\native" />
</files>
</package>

View File

@@ -53,6 +53,7 @@
<OutDir>$(SolutionDir)build\$(Platform)\$(Configuration)\</OutDir>
<IntDir>build\$(Platform)\$(Configuration)\</IntDir>
<GenerateManifest>false</GenerateManifest>
<TargetName>YaeLib</TargetName>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>