Skip to content

Commit dacbd0f

Browse files
authored
Fix paths for build and publish steps in release workflow
1 parent 05bb640 commit dacbd0f

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,14 @@ jobs:
3232
run: dotnet restore ./src
3333

3434
- name: Build
35-
run: dotnet publish ./src -c Release --no-restore -o ./release
35+
run: dotnet build ./src -c Release --no-restore
3636

3737
- name: Test
3838
run: dotnet test ./src -c Release --no-build --verbosity normal
3939

40+
- name: Pack
41+
run: dotnet pack ./src/Mongo.SignalR.Backplane/Mongo.SignalR.Backplane.csproj -c Release --no-build --output ./release
42+
4043
- name: Zip
4144
run: zip -qr Mongo.SignalR.Backplane-${{ github.event.inputs.version }}.zip ./release
4245

@@ -63,7 +66,7 @@ jobs:
6366
asset_content_type: application/zip
6467

6568
- name: Publish to nuget.org
66-
run: dotnet nuget push src/Mongo.SignalR.Backplane/bin/Release/Mongo.SignalR.Backplane.*.nupkg --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json
69+
run: dotnet nuget push ./release/Mongo.SignalR.Backplane.*.nupkg --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json
6770

6871
- name: Publish symbols to nuget.org
69-
run: dotnet nuget push src/Mongo.SignalR.Backplane/bin/Release/Mongo.SignalR.Backplane.*.snupkg --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json
72+
run: dotnet nuget push ./release/Mongo.SignalR.Backplane.*.snupkg --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)