Skip to content

Commit

Permalink
Merge pull request #1736 from solliancenet/jdh-common-nuget-081
Browse files Browse the repository at this point in the history
(0.8.1) Add FoundationaLLM.Common NuGet package
  • Loading branch information
ciprianjichici authored Sep 18, 2024
2 parents d77d0e0 + 6d39b48 commit fa3f574
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/publish-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ jobs:
run: bash ./versioning.sh
id: versioning

- name: Build Common
working-directory: ./src/dotnet/Common
run: dotnet build --configuration Release -p:GITHUB_ACTIONS=true

- name: Build CoreClient
working-directory: ./src/dotnet/CoreClient
run: dotnet build --configuration Release -p:GITHUB_ACTIONS=true
Expand All @@ -33,6 +37,10 @@ jobs:
working-directory: ./src/dotnet/ManagementClient
run: dotnet build --configuration Release -p:GITHUB_ACTIONS=true

- name: Pack Common
working-directory: ./src/dotnet/Common
run: dotnet pack --configuration Release /p:PackageVersion=${{ steps.versioning.outputs.version }} -p:GITHUB_ACTIONS=true --output ./nupkg

- name: Pack CoreClient
working-directory: ./src/dotnet/CoreClient
run: dotnet pack --configuration Release /p:PackageVersion=${{ steps.versioning.outputs.version }} -p:GITHUB_ACTIONS=true --output ./nupkg
Expand All @@ -41,6 +49,10 @@ jobs:
working-directory: ./src/dotnet/ManagementClient
run: dotnet pack --configuration Release /p:PackageVersion=${{ steps.versioning.outputs.version }} -p:GITHUB_ACTIONS=true --output ./nupkg

- name: Publish Common to NuGet
working-directory: ./src/dotnet/Common
run: dotnet nuget push ./nupkg/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

- name: Publish CoreClient to NuGet
working-directory: ./src/dotnet/CoreClient
run: dotnet nuget push ./nupkg/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
Expand Down
30 changes: 30 additions & 0 deletions src/dotnet/Common/Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,43 @@
<Nullable>enable</Nullable>
<AssemblyName>FoundationaLLM.Common</AssemblyName>
<RootNamespace>FoundationaLLM.Common</RootNamespace>
<ProjectType>Library</ProjectType>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
</PropertyGroup>

<PropertyGroup>
<Description>FoundationaLLM.Client.Common is a .NET library that the FoundationaLLM.Client.Core and FoundationaLLM.Client.Management client libraries share as a common dependency. Do not directly import and use this library.</Description>
<PackageTags>FoundationaLLM;LLM;GPT;AI;SDK;Common</PackageTags>
<RepositoryUrl>https://github.com/solliancenet/foundationallm</RepositoryUrl>
<PackageId>FoundationaLLM.Common</PackageId>
<Version>0.0.0</Version> <!-- Placeholder version -->
<PackageIcon>fllm-icon-128.png</PackageIcon>
<PackageReadmeFile>readme.md</PackageReadmeFile>
<Title>FoundationaLLM Common</Title>
<Authors>Solliance</Authors>
<RepositoryType>git</RepositoryType>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PackageProjectUrl>https://foundationallm.ai</PackageProjectUrl>
<Copyright>Copyright © Solliance. All rights reserved.</Copyright>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Deterministic>true</Deterministic>
</PropertyGroup>

<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<ItemGroup>
<Content Remove="C:\Users\ciprian.jichici\.nuget\packages\azure.messaging.eventgrid\4.22.0-beta.1\contentFiles\any\netstandard2.0\EventGridClient.xml" />
<Content Remove="C:\Users\CiprianJichici\.nuget\packages\azure.messaging.eventgrid\4.22.0-beta.1\contentFiles\any\netstandard2.0\EventGridClient.xml" />
</ItemGroup>

<ItemGroup>
<None Include="..\..\..\assets\fllm-icon-128.png" Pack="true" PackagePath="\" />
<None Include="readme.md" Pack="true" PackagePath="\" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Azure.Data.AppConfiguration" Version="1.4.0" />
Expand Down
8 changes: 8 additions & 0 deletions src/dotnet/Common/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Foundationa**LLM** Common

Foundationa**LLM** Common is a .NET library that the `FoundationaLLM.Client.Core` and `FoundationaLLM.Client.Management` client libraries share as a common dependency.

> [!IMPORTANT]
> **Do not directly import and use this library.**
To use the Foundationa**LLM** client libraries, install the `FoundationaLLM.Client.Core` or `FoundationaLLM.Client.Management` NuGet package.

0 comments on commit fa3f574

Please sign in to comment.