aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/dotnet.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/dotnet.yml')
-rw-r--r--.github/workflows/dotnet.yml9
1 files changed, 6 insertions, 3 deletions
diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml
index 7ae8ac1..b48095a 100644
--- a/.github/workflows/dotnet.yml
+++ b/.github/workflows/dotnet.yml
@@ -15,7 +15,8 @@ on:
- ".github/workflows/dotnet.yml"
jobs:
- test:
+ build-and-test:
+ name: Build and Test (.NET)
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
@@ -33,7 +34,8 @@ jobs:
run: dotnet test --no-restore
publish-preview:
- needs: test
+ name: Publish Preview to GitHub Packages
+ needs: build-and-test
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
runs-on: ubuntu-latest
permissions:
@@ -58,7 +60,8 @@ jobs:
run: dotnet nuget push src/bin/Release/*.symbols.nupkg
publish-release:
- needs: test
+ name: Publish Release to NuGet
+ needs: build-and-test
if: ${{ github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/') }}
runs-on: ubuntu-latest
steps: