Skip to content

Commit 4e58794

Browse files
committed
ci: publish BLite.Proto to NuGet alongside BLite.Client
1 parent bc72cf7 commit 4e58794

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ permissions:
2222
packages: write # push to ghcr.io
2323

2424
jobs:
25-
# ── NuGet package ───────────────────────────────────────────────────────────
25+
# ── NuGet packages ──────────────────────────────────────────────────────────
2626
nuget-client:
27-
name: Pack & Publish BLite.Client
27+
name: Pack & Publish BLite.Client + BLite.Proto
2828
runs-on: ubuntu-latest
2929

3030
steps:
@@ -42,6 +42,14 @@ jobs:
4242
with:
4343
dotnet-version: "10.0.x"
4444

45+
- name: Pack BLite.Proto
46+
run: >
47+
dotnet pack BLite.Server/src/BLite.Proto/BLite.Proto.csproj
48+
--configuration Release
49+
--output artifacts/nuget
50+
-p:Version=${{ steps.version.outputs.version }}
51+
--nologo
52+
4553
- name: Pack BLite.Client
4654
run: >
4755
dotnet pack BLite.Server/src/BLite.Client/BLite.Client.csproj
@@ -50,6 +58,13 @@ jobs:
5058
-p:Version=${{ steps.version.outputs.version }}
5159
--nologo
5260
61+
- name: Publish BLite.Proto to NuGet.org
62+
run: >
63+
dotnet nuget push "artifacts/nuget/BLite.Proto.${{ steps.version.outputs.version }}.nupkg"
64+
--source https://api.nuget.org/v3/index.json
65+
--api-key ${{ secrets.NUGET_API_KEY }}
66+
--skip-duplicate
67+
5368
- name: Publish BLite.Client to NuGet.org
5469
run: >
5570
dotnet nuget push "artifacts/nuget/BLite.Client.${{ steps.version.outputs.version }}.nupkg"

0 commit comments

Comments
 (0)