File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77jobs :
88 build :
9+ permissions :
10+ contents : read
11+ id-token : write
912 runs-on : ubuntu-latest
1013 name : Build Pack and Publish
1114 steps :
1215 - uses : actions/checkout@v7
1316
14- - name : Setup .NET 9
17+ - name : Setup .NET 10
1518 uses : actions/setup-dotnet@v6
1619 with :
1720 dotnet-version : 10.0.x
2225 - name : Pack
2326 run : dotnet pack -c Release --no-build --output . --version-suffix ${{github.run_number}} src/Cloudtoid.CodeAnalysis.csproj
2427
28+ - name : NuGet login
29+ uses : NuGet/login@v1
30+ id : nuget-login
31+ with :
32+ user : pedramr
33+
2534 - name : Push
26- run : dotnet nuget push Cloudtoid.CodeAnalysis.*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.nuget_org_api_key }}
35+ run : dotnet nuget push Cloudtoid.CodeAnalysis.*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ steps.nuget-login.outputs.NUGET_API_KEY }}
Original file line number Diff line number Diff line change 66
77 <!-- NuGet Packaging -->
88 <PropertyGroup >
9+ <PackageReadmeFile >README.md</PackageReadmeFile >
910 <PackageId >Cloudtoid.CodeAnalysis</PackageId >
1011 <Title >Cloudtoid.CodeAnalysis</Title >
1112 <Authors >pedram@rezaei.us</Authors >
3536 <Content Include =" assets\stylecop.json" PackagePath =" build" />
3637 </ItemGroup >
3738
39+ <ItemGroup >
40+ <None Include =" ../README.md" Pack =" true" PackagePath =" /" />
41+ </ItemGroup >
42+
3843</Project >
You can’t perform that action at this time.
0 commit comments