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.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml
index 106d92c..3b2fecb 100644
--- a/.github/workflows/dotnet.yml
+++ b/.github/workflows/dotnet.yml
@@ -62,7 +62,8 @@ jobs:
publish-release:
name: Publish Release NuGet to NuGet.org
needs: build-and-test
- if: ${{ github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/') }}
+ # Only run on this on proper semver (vX.Y.Z) tags
+ if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'v') }}
runs-on: ubuntu-latest
steps:
- name: Checkout