diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..8921564a4 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 diff --git a/algoliasearch/Algolia.Search.csproj b/algoliasearch/Algolia.Search.csproj index 4c4e93d74..4e6db5de7 100644 --- a/algoliasearch/Algolia.Search.csproj +++ b/algoliasearch/Algolia.Search.csproj @@ -33,6 +33,8 @@ Algolia.Search CS0612;CS1570 false + true + README.md @@ -41,4 +43,17 @@ + + + true + / + icon.png + + + true + / + README.md + + + diff --git a/global.json b/global.json index 7900c220d..17c0c8e40 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "8.0.0", + "version": "8.0.101", "rollForward": "latestMinor" } } diff --git a/icon.png b/icon.png new file mode 100644 index 000000000..3bbce791a Binary files /dev/null and b/icon.png differ