Skip to content

Commit 0369ec7

Browse files
[.Net] publish to nuget.org feed (#1987)
* publish to nuget * update ci * update dotnet-release * update release pipeline * add source * remove empty symbol package * update pipeline * remove tag * update installation guide
1 parent d58f2c8 commit 0369ec7

File tree

5 files changed

+18
-36
lines changed

5 files changed

+18
-36
lines changed

.github/workflows/dotnet-build.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -138,5 +138,4 @@ jobs:
138138
ls -R ./output/nightly
139139
dotnet nuget push --api-key ${{ secrets.MYGET_TOKEN }} --source "https://www.myget.org/F/agentchat/api/v3/index.json" ./output/nightly/*.nupkg --skip-duplicate
140140
env:
141-
MYGET_TOKEN: ${{ secrets.MYGET_TOKEN }}
142-
141+
MYGET_TOKEN: ${{ secrets.MYGET_TOKEN }}

.github/workflows/dotnet-release.yml

+4-10
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
workflow_dispatch:
88
push:
99
branches:
10+
- dotnet/release/**
1011
- dotnet/release
1112

1213
concurrency:
@@ -57,13 +58,6 @@ jobs:
5758
echo "Publish package to Nuget"
5859
echo "ls output directory"
5960
ls -R ./output/release
60-
dotnet nuget push --api-key AzureArtifacts ./output/release/*.nupkg --skip-duplicate --api-key ${{ secrets.AUTOGEN_NUGET_API_KEY }}
61-
- name: Tag commit
62-
run: |
63-
Write-Host "Tag commit"
64-
# version = eng/MetaInfo.props.Project.PropertyGroup.VersionPrefix
65-
$metaInfoContent = cat ./eng/MetaInfo.props
66-
$version = $metaInfoContent | Select-String -Pattern "<VersionPrefix>(.*)</VersionPrefix>" | ForEach-Object { $_.Matches.Groups[1].Value }
67-
git tag -a "$version" -m "AutoGen.Net release $version"
68-
git push origin --tags
69-
shell: pwsh
61+
# remove AutoGen.SourceGenerator.snupkg because it's an empty package
62+
rm ./output/release/AutoGen.SourceGenerator.*.snupkg
63+
dotnet nuget push --api-key ${{ secrets.AUTOGEN_NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json ./output/release/*.nupkg --skip-duplicate

dotnet/README.md

+8-19
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,18 @@
11
### AutoGen for .NET
22

33
[![dotnet-ci](https://github.com/microsoft/autogen/actions/workflows/dotnet-build.yml/badge.svg)](https://github.com/microsoft/autogen/actions/workflows/dotnet-build.yml)
4+
[![NuGet version](https://badge.fury.io/nu/AutoGen.Core.svg)](https://badge.fury.io/nu/AutoGen.Core)
45

5-
#### Get start with AutoGen for dotnet
6-
Firstly, select one of the following package feed to consume AutoGen packages:
7-
- ![Static Badge](https://img.shields.io/badge/public-blue?style=flat) ![Static Badge](https://img.shields.io/badge/nightly-yellow?style=flat) ![Static Badge](https://img.shields.io/badge/github-grey?style=flat): https://nuget.pkg.github.com/microsoft/index.json
8-
- ![Static Badge](https://img.shields.io/badge/public-blue?style=flat) ![Static Badge](https://img.shields.io/badge/nightly-yellow?style=flat) ![Static Badge](https://img.shields.io/badge/myget-grey?style=flat): https://www.myget.org/F/agentchat/api/v3/index.json
9-
- ![Static Badge](https://img.shields.io/badge/internal-blue?style=flat) ![Static Badge](https://img.shields.io/badge/nightly-yellow?style=flat) ![Static Badge](https://img.shields.io/badge/azure_devops-grey?style=flat) : https://devdiv.pkgs.visualstudio.com/DevDiv/_packaging/AutoGen/nuget/v3/index.json
6+
> [!NOTE]
7+
> Nightly build is available at:
8+
> - ![Static Badge](https://img.shields.io/badge/public-blue?style=flat) ![Static Badge](https://img.shields.io/badge/nightly-yellow?style=flat) ![Static Badge](https://img.shields.io/badge/github-grey?style=flat): https://nuget.pkg.github.com/microsoft/index.json
9+
> - ![Static Badge](https://img.shields.io/badge/public-blue?style=flat) ![Static Badge](https://img.shields.io/badge/nightly-yellow?style=flat) ![Static Badge](https://img.shields.io/badge/myget-grey?style=flat): https://www.myget.org/F/agentchat/api/v3/index.json
10+
> - ![Static Badge](https://img.shields.io/badge/internal-blue?style=flat) ![Static Badge](https://img.shields.io/badge/nightly-yellow?style=flat) ![Static Badge](https://img.shields.io/badge/azure_devops-grey?style=flat) : https://devdiv.pkgs.visualstudio.com/DevDiv/_packaging/AutoGen/nuget/v3/index.json
1011
1112

12-
Then, add the following to your project file:
13-
```xml
14-
<ItemGroup>
15-
<PackageReference Include="AutoGen" />
13+
Firstly, following the [installation guide](./website/articles/Installation.md) to install AutoGen packages.
1614

17-
<!-- Optional: This package carries a source generator that adds support for type-safe function definition generation. -->
18-
<!-- For more information, please check out AutoGen.SourceGenerator README -->
19-
<PackageReference Include="AutoGen.SourceGenerator" />
20-
21-
<!-- Optional: This packages carries dotnet interactive support to execute dotnet code snippet -->
22-
<PackageReference Include="AutoGen.DotnetInteractive" />
23-
</ItemGroup>
24-
```
25-
26-
Then, start using AutoGen in your code:
15+
Then you can start with the following code snippet to create a conversable agent and chat with it.
2716

2817
```csharp
2918
using AutoGen;

dotnet/nuget/nuget-package.props

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
<Authors>AutoGen</Authors>
77
<Company>Microsoft</Company>
88
<Product>AutoGen</Product>
9-
<Description>cutting-edge LLM multi-agent framework</Description>
9+
<Description>A programming framework for agentic AI</Description>
1010
<PackageTags>AI, Artificial Intelligence, SDK</PackageTags>
1111
<PackageId>$(AssemblyName)</PackageId>
1212

1313
<!-- Required license, copyright, and repo information. Packages can override. -->
1414
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1515
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
16-
<PackageProjectUrl>https://microsoft.github.io/autogen</PackageProjectUrl>
16+
<PackageProjectUrl>https://microsoft.github.io/autogen-for-net</PackageProjectUrl>
1717
<RepositoryUrl>https://github.com/microsoft/autogen</RepositoryUrl>
1818
<PublishRepositoryUrl>true</PublishRepositoryUrl>
1919

dotnet/website/articles/Installation.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
### Install AutoGen
22

3-
Firstly, select one of the following package feed to consume AutoGen packages:
4-
> [!NOTE]
5-
> There's only nightly-build feed available for now, the stable-version will be published to nuget once it's available
3+
#### Nuget build
4+
[![NuGet version](https://badge.fury.io/nu/AutoGen.Core.svg)](https://badge.fury.io/nu/AutoGen.Core)
65

6+
#### Nighly build
77
- ![Static Badge](https://img.shields.io/badge/public-blue?style=flat) ![Static Badge](https://img.shields.io/badge/nightly-yellow?style=flat) ![Static Badge](https://img.shields.io/badge/github-grey?style=flat): https://nuget.pkg.github.com/microsoft/index.json
88
- ![Static Badge](https://img.shields.io/badge/public-blue?style=flat) ![Static Badge](https://img.shields.io/badge/nightly-yellow?style=flat) ![Static Badge](https://img.shields.io/badge/myget-grey?style=flat): https://www.myget.org/F/agentchat/api/v3/index.json
99
- ![Static Badge](https://img.shields.io/badge/internal-blue?style=flat) ![Static Badge](https://img.shields.io/badge/nightly-yellow?style=flat) ![Static Badge](https://img.shields.io/badge/azure_devops-grey?style=flat) : https://devdiv.pkgs.visualstudio.com/DevDiv/_packaging/AutoGen/nuget/v3/index.json

0 commit comments

Comments
 (0)