File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Publish to NuGet
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ permissions :
8+ contents : read
9+
10+ jobs :
11+ publish :
12+ runs-on : ubuntu-latest
13+ timeout-minutes : 15
14+
15+ steps :
16+ - name : Checkout code
17+ uses : actions/checkout@v4
18+
19+ - name : Setup .NET
20+ uses : actions/setup-dotnet@v4
21+ with :
22+ dotnet-version : 10.0.x
23+
24+ - name : Restore dependencies
25+ run : dotnet restore graphify-dotnet.slnx
26+
27+ - name : Build in Release mode
28+ run : dotnet build graphify-dotnet.slnx --configuration Release --no-restore
29+
30+ - name : Run all tests
31+ run : dotnet test graphify-dotnet.slnx --configuration Release --no-build --verbosity normal
32+
33+ - name : Pack the tool
34+ run : dotnet pack src/Graphify.Cli/Graphify.Cli.csproj --configuration Release --no-build -o ./nupkg
35+
36+ - name : Push to NuGet.org
37+ run : dotnet nuget push ./nupkg/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ dotnet --version
2929
3030### Method 1: From NuGet (Recommended)
3131
32- Once graphify-dotnet is published to NuGet.org:
32+ Starting with v0.5.0, graphify-dotnet is published on [ NuGet.org] ( https://www.nuget.org/packages/graphify-dotnet ) . Install with :
3333
3434``` bash
3535dotnet tool install -g graphify-dotnet
Original file line number Diff line number Diff line change 66 <PackAsTool >true</PackAsTool >
77 <ToolCommandName >graphify</ToolCommandName >
88 <PackageId >graphify-dotnet</PackageId >
9- <Version >0.1 .0</Version >
9+ <Version >0.5 .0</Version >
1010 <Description >AI-powered knowledge graph builder for codebases</Description >
1111 <Authors >Bruno Capuano</Authors >
1212 <PackageProjectUrl >https://github.com/elbruno/graphify-dotnet</PackageProjectUrl >
1313 <PackageLicenseExpression >MIT</PackageLicenseExpression >
1414 <PackageReadmeFile >README.md</PackageReadmeFile >
1515 <PackageIcon >nuget_logo.png</PackageIcon >
1616 <RepositoryUrl >https://github.com/elbruno/graphify-dotnet</RepositoryUrl >
17+ <IncludeSymbols >true</IncludeSymbols >
18+ <SymbolPackageFormat >snupkg</SymbolPackageFormat >
1719 <UserSecretsId >graphify-dotnet-3134eb8e-5948-4541-b6e4-ab9f52f3df62</UserSecretsId >
1820 </PropertyGroup >
1921
You can’t perform that action at this time.
0 commit comments