From 06e7408b0098b69e0984e4655dd1a5668ab3924c Mon Sep 17 00:00:00 2001 From: Dirk Kulawiak Date: Wed, 11 Jun 2025 14:09:21 +0200 Subject: [PATCH 1/4] Add releasing to nuget --- .github/workflows/main.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index c18006fb..a83fb607 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -44,3 +44,21 @@ jobs: run: dotnet test - name: stop weaviate run: /bin/bash ci/stop_weaviate.sh ${{ env.WEAVIATE }} + + build-and-publish: + name: Build and publish to Nuget + needs: [integration-tests] + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Setup dotnet 8 + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8.x' + - name: Install dependencies and build + run: dotnet pack -c Release -o out + - name: Push generated package to GitHub registry + run: dotnet nuget push ./csharp-client/out/*.nupkg --skip-duplicate --api-key ${{ secrets.NUGET_APIKEY }} \ No newline at end of file From 4d100e15289c83e0e33bb4580621cbbb2dba6c69 Mon Sep 17 00:00:00 2001 From: Dirk Kulawiak Date: Wed, 11 Jun 2025 14:44:17 +0200 Subject: [PATCH 2/4] Add correct path for building --- .github/workflows/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index a83fb607..b8e79a8a 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -59,6 +59,6 @@ jobs: with: dotnet-version: '8.x' - name: Install dependencies and build - run: dotnet pack -c Release -o out + run: dotnet pack -c Release -o out src/Weaviate.Client/ - name: Push generated package to GitHub registry run: dotnet nuget push ./csharp-client/out/*.nupkg --skip-duplicate --api-key ${{ secrets.NUGET_APIKEY }} \ No newline at end of file From 90ede7b69ea245874824963f41822d60168b65bf Mon Sep 17 00:00:00 2001 From: Dirk Kulawiak Date: Wed, 11 Jun 2025 14:50:46 +0200 Subject: [PATCH 3/4] Add source for push --- .github/workflows/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index b8e79a8a..90379dda 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -61,4 +61,4 @@ jobs: - name: Install dependencies and build run: dotnet pack -c Release -o out src/Weaviate.Client/ - name: Push generated package to GitHub registry - run: dotnet nuget push ./csharp-client/out/*.nupkg --skip-duplicate --api-key ${{ secrets.NUGET_APIKEY }} \ No newline at end of file + run: dotnet nuget push ./csharp-client/out/*.nupkg --skip-duplicate --api-key ${{ secrets.NUGET_APIKEY }} --source https://api.nuget.org/v3/index.json \ No newline at end of file From eaff6f51a06eadde8f7614fc9eeaca1ea674f5f6 Mon Sep 17 00:00:00 2001 From: Dirk Kulawiak Date: Wed, 11 Jun 2025 14:54:23 +0200 Subject: [PATCH 4/4] Fix push path --- .github/workflows/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 90379dda..cec31758 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -61,4 +61,4 @@ jobs: - name: Install dependencies and build run: dotnet pack -c Release -o out src/Weaviate.Client/ - name: Push generated package to GitHub registry - run: dotnet nuget push ./csharp-client/out/*.nupkg --skip-duplicate --api-key ${{ secrets.NUGET_APIKEY }} --source https://api.nuget.org/v3/index.json \ No newline at end of file + run: dotnet nuget push ./out/*.nupkg --skip-duplicate --api-key ${{ secrets.NUGET_APIKEY }} --source https://api.nuget.org/v3/index.json \ No newline at end of file