Skip to content

Commit

Permalink
chore: generated code for commit 83da9c31. [skip ci]
Browse files Browse the repository at this point in the history
algolia/api-clients-automation@83da9c3

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Morgan Leroi <[email protected]>
  • Loading branch information
algolia-bot and morganleroi committed Feb 6, 2024
1 parent 26be13c commit a2db5e6
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release packages

on:
push:
branches:
- next

jobs:
release:
name: Publish
runs-on: ubuntu-22.04
if: "startsWith(github.event.head_commit.message, 'chore: release')"
steps:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json

- name: Create Nugget package
run: dotnet pack --configuration Release --output nugget

- name: Publish NuGet package
run: dotnet nuget push "nugget/*.nupkg" --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
15 changes: 15 additions & 0 deletions algoliasearch/Algolia.Search.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
<RootNamespace>Algolia.Search</RootNamespace>
<NoWarn>CS0612;CS1570</NoWarn>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo><!-- setting GenerateAssemblyInfo to false causes this bug https://github.com/dotnet/project-system/issues/3934 -->
<EnablePackageValidation>true</EnablePackageValidation>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup>
Expand All @@ -41,4 +43,17 @@
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>

<ItemGroup>
<Content Include="..\icon.png">
<Pack>true</Pack>
<PackagePath>/</PackagePath>
<Link>icon.png</Link>
</Content>
<Content Include="..\README.md">
<Pack>true</Pack>
<PackagePath>/</PackagePath>
<Link>README.md</Link>
</Content>
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "8.0.0",
"version": "8.0.101",
"rollForward": "latestMinor"
}
}
Binary file added icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a2db5e6

Please sign in to comment.