File tree Expand file tree Collapse file tree 4 files changed +59
-0
lines changed Expand file tree Collapse file tree 4 files changed +59
-0
lines changed Original file line number Diff line number Diff line change 1616 options :
1717 - Debug
1818 - Release
19+ pack :
20+ type : boolean
21+ default : false
22+ publish_github :
23+ type : boolean
24+ description : Publish to GitHub Packages
25+ default : false
26+ publish_nuget :
27+ type : boolean
28+ description : Publish to nuget.org
29+ default : false
1930
2031env :
2132 target : ${{ inputs.target || 'MasterMemorySplint.sln' }}
4859
4960 - name : Test
5061 run : dotnet test ${{ env.target }} --no-build -c ${{ env.configuration }} --verbosity normal
62+
63+ - name : Pack
64+ if : ${{ inputs.pack }}
65+ run : dotnet pack ${{ env.target }} --no-build -c ${{ env.configuration }} -o artifacts --verbosity detailed
66+
67+ - name : Save
68+ if : ${{ inputs.pack }}
69+ uses : actions/upload-artifact@v4
70+ with :
71+ path : artifacts
72+
73+ - name : Publish
74+ if : ${{ inputs.pack && inputs.publish_github }}
75+ run : dotnet nuget push "artifacts/*.nupkg" -k ${{ secrets.GITHUB_TOKEN }} -s "github" --skip-duplicate
76+
77+ - name : Publish NuGet
78+ if : ${{ inputs.pack && inputs.publish_nuget }}
79+ run : dotnet nuget push "artifacts/*.nupkg" -k ${{ secrets.NUGET_OLG_API_KEY }} -s "nuget" --skip-duplicate
Original file line number Diff line number Diff line change 99 <TreatWarningsAsErrors >true</TreatWarningsAsErrors >
1010 <CodeAnalysisTreatWarningsAsErrors >false</CodeAnalysisTreatWarningsAsErrors >
1111 <WarningsNotAsErrors >CS0618;NU1902</WarningsNotAsErrors >
12+
13+ <IsPackable >false</IsPackable >
14+ <IncludeSymbols >true</IncludeSymbols >
15+ <SymbolPackageFormat >snupkg</SymbolPackageFormat >
16+
17+ <Version >2.4.4-beta.1</Version >
18+ <Authors >hikarin522</Authors >
19+ <Copyright >(c) 2024 hikarin522.</Copyright >
20+ <PackageLicenseExpression >MIT</PackageLicenseExpression >
21+ <RepositoryType >git</RepositoryType >
22+ <RepositoryUrl >https://github.com/hikarin522/MasterMemorySplint</RepositoryUrl >
23+ <PackageProjectUrl >$(RepositoryUrl)</PackageProjectUrl >
24+ <PackageReadmeFile >README.md</PackageReadmeFile >
1225 </PropertyGroup >
1326
1427</Project >
Original file line number Diff line number Diff line change 22
33 <PropertyGroup >
44 <TargetFrameworks >net8.0;netstandard2.1;netstandard2.0</TargetFrameworks >
5+
6+ <IsPackable >true</IsPackable >
57 </PropertyGroup >
68
9+ <ItemGroup >
10+ <None Include =" ..\README.md" Pack =" true" PackagePath =" \" Visible =" false" />
11+ </ItemGroup >
12+
713 <ItemGroup >
814 <PackageReference Include =" MasterMemory" Version =" 2.4.4" />
915 </ItemGroup >
1016
17+ <ItemGroup >
18+ <ProjectReference Include =" ..\MasterMemorySplint.Generator\MasterMemorySplint.Generator.csproj" ReferenceOutputAssembly =" false" />
19+ <None Include =" ..\MasterMemorySplint.Generator\bin\$(Configuration)\netstandard2.0\MasterMemorySplint.Generator.dll" Pack =" true" PackagePath =" analyzers/dotnet/cs" Visible =" false" />
20+ </ItemGroup >
21+
1122</Project >
Original file line number Diff line number Diff line change 44 <!-- To inherit the global NuGet package sources remove the <clear/> line below -->
55 <clear />
66 <add key =" nuget" value =" https://api.nuget.org/v3/index.json" />
7+ <add key =" github" value =" https://nuget.pkg.github.com/hikarin522/index.json" />
78 </packageSources >
9+ <packageSourceMapping >
10+ <packageSource key =" nuget" >
11+ <package pattern =" *" />
12+ </packageSource >
13+ </packageSourceMapping >
814</configuration >
You can’t perform that action at this time.
0 commit comments