Skip to content

Commit e54822a

Browse files
elbrunoCopilot
andcommitted
build: add NuGet publish workflow + bump to v0.5.0
- Create .github/workflows/publish.yml (triggers on GitHub release) - Bump version from 0.1.0 to 0.5.0 - Add symbol package support (snupkg) - Update docs/dotnet-tool-install.md Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent b1db8e2 commit e54822a

3 files changed

Lines changed: 41 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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

docs/dotnet-tool-install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
3535
dotnet tool install -g graphify-dotnet

src/Graphify.Cli/Graphify.Cli.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@
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

0 commit comments

Comments
 (0)