Skip to content

Commit eb8e031

Browse files
committed
Ensure submodules are cloned for NuGet publish
1 parent d786db1 commit eb8e031

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/build-test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
run: .\.ci\windows\gha-setup.ps1
3636
- name: List NuGet sources
3737
run: dotnet nuget locals all --list
38-
- name: Build
38+
- name: Build (Debug)
3939
run: dotnet build ${{ github.workspace }}\Build.csproj
4040
- name: Verify
4141
run: dotnet format ${{ github.workspace }}\RabbitMQDotNetClient.sln --verify-no-changes --verbosity=diagnostic
@@ -73,7 +73,7 @@ jobs:
7373
run: ${{ github.workspace }}/.ci/ubuntu/gha-setup.sh
7474
- name: List NuGet sources
7575
run: dotnet nuget locals all --list
76-
- name: Build
76+
- name: Build (Debug)
7777
run: dotnet build ${{ github.workspace }}/Build.csproj
7878
- name: Verify
7979
run: dotnet format ${{ github.workspace }}/RabbitMQDotNetClient.sln --verify-no-changes --verbosity=diagnostic

.github/workflows/publish-nuget.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
runs-on: windows-latest
1212
steps:
1313
- uses: actions/checkout@v4
14+
with:
15+
submodules: true
1416
- uses: actions/cache@v3
1517
with:
1618
path: |
@@ -20,6 +22,6 @@ jobs:
2022
restore-keys: |
2123
${{ runner.os }}-v1-nuget-
2224
- name: Build (Release)
23-
run: dotnet build ${{ github.workspace }}\projects\RabbitMQ.Client\RabbitMQ.Client.csproj --verbosity=normal --configuration=Release --property CI=true
25+
run: dotnet build ${{ github.workspace }}\projects\RabbitMQ.Client\RabbitMQ.Client.csproj --configuration=Release --property CI=true
2426
- name: Publish to NuGet
2527
run: dotnet nuget push --skip-duplicate --api-key ${{ secrets.NUGET_API_KEY }} --source 'https://api.nuget.org/v3/index.json' ${{ github.workspace }}\packages\RabbitMQ.Client.7.*.nupkg

0 commit comments

Comments
 (0)