diff --git a/.github/workflows/dotnet-build.yml b/.github/workflows/dotnet-build.yml index 180316617588..659d47950bac 100644 --- a/.github/workflows/dotnet-build.yml +++ b/.github/workflows/dotnet-build.yml @@ -138,5 +138,4 @@ jobs: ls -R ./output/nightly dotnet nuget push --api-key ${{ secrets.MYGET_TOKEN }} --source "https://www.myget.org/F/agentchat/api/v3/index.json" ./output/nightly/*.nupkg --skip-duplicate env: - MYGET_TOKEN: ${{ secrets.MYGET_TOKEN }} - + MYGET_TOKEN: ${{ secrets.MYGET_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/dotnet-release.yml b/.github/workflows/dotnet-release.yml index df836e6f1375..f88c5ab3673a 100644 --- a/.github/workflows/dotnet-release.yml +++ b/.github/workflows/dotnet-release.yml @@ -7,6 +7,7 @@ on: workflow_dispatch: push: branches: + - dotnet/release/** - dotnet/release concurrency: @@ -57,13 +58,6 @@ jobs: echo "Publish package to Nuget" echo "ls output directory" ls -R ./output/release - dotnet nuget push --api-key AzureArtifacts ./output/release/*.nupkg --skip-duplicate --api-key ${{ secrets.AUTOGEN_NUGET_API_KEY }} - - name: Tag commit - run: | - Write-Host "Tag commit" - # version = eng/MetaInfo.props.Project.PropertyGroup.VersionPrefix - $metaInfoContent = cat ./eng/MetaInfo.props - $version = $metaInfoContent | Select-String -Pattern "(.*)" | ForEach-Object { $_.Matches.Groups[1].Value } - git tag -a "$version" -m "AutoGen.Net release $version" - git push origin --tags - shell: pwsh \ No newline at end of file + # remove AutoGen.SourceGenerator.snupkg because it's an empty package + rm ./output/release/AutoGen.SourceGenerator.*.snupkg + dotnet nuget push --api-key ${{ secrets.AUTOGEN_NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json ./output/release/*.nupkg --skip-duplicate diff --git a/dotnet/README.md b/dotnet/README.md index 1c4cab24f369..dc4486f461c7 100644 --- a/dotnet/README.md +++ b/dotnet/README.md @@ -1,29 +1,18 @@ ### AutoGen for .NET [![dotnet-ci](https://github.com/microsoft/autogen/actions/workflows/dotnet-build.yml/badge.svg)](https://github.com/microsoft/autogen/actions/workflows/dotnet-build.yml) +[![NuGet version](https://badge.fury.io/nu/AutoGen.Core.svg)](https://badge.fury.io/nu/AutoGen.Core) -#### Get start with AutoGen for dotnet -Firstly, select one of the following package feed to consume AutoGen packages: -- ![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 -- ![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 -- ![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 +> [!NOTE] +> Nightly build is available at: +> - ![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 +> - ![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 +> - ![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 -Then, add the following to your project file: -```xml - - +Firstly, following the [installation guide](./website/articles/Installation.md) to install AutoGen packages. - - - - - - - -``` - -Then, start using AutoGen in your code: +Then you can start with the following code snippet to create a conversable agent and chat with it. ```csharp using AutoGen; diff --git a/dotnet/nuget/nuget-package.props b/dotnet/nuget/nuget-package.props index a6d14a4cff2b..237fa96bcb26 100644 --- a/dotnet/nuget/nuget-package.props +++ b/dotnet/nuget/nuget-package.props @@ -6,14 +6,14 @@ AutoGen Microsoft AutoGen - cutting-edge LLM multi-agent framework + A programming framework for agentic AI AI, Artificial Intelligence, SDK $(AssemblyName) MIT © Microsoft Corporation. All rights reserved. - https://microsoft.github.io/autogen + https://microsoft.github.io/autogen-for-net https://github.com/microsoft/autogen true diff --git a/dotnet/website/articles/Installation.md b/dotnet/website/articles/Installation.md index 9857ff618f2e..abc00e2a5352 100644 --- a/dotnet/website/articles/Installation.md +++ b/dotnet/website/articles/Installation.md @@ -1,9 +1,9 @@ ### Install AutoGen -Firstly, select one of the following package feed to consume AutoGen packages: -> [!NOTE] -> There's only nightly-build feed available for now, the stable-version will be published to nuget once it's available +#### Nuget build +[![NuGet version](https://badge.fury.io/nu/AutoGen.Core.svg)](https://badge.fury.io/nu/AutoGen.Core) +#### Nighly build - ![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 - ![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 - ![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