We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 162376b commit e44668eCopy full SHA for e44668e
.github/workflows/release.yaml
@@ -1,9 +1,8 @@
1
name: Release NuGet Package
2
3
on:
4
- push:
5
- tags:
6
- - 'v*' # Triggers on tags like v1.2.3
+ release:
+ types: [published]
7
8
jobs:
9
build-and-publish:
@@ -23,7 +22,7 @@ jobs:
23
22
24
- name: Extract version from tag
25
id: get_version
26
- run: echo "PACKAGE_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
+ run: echo "PACKAGE_VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
27
- name: Build
28
run: dotnet build --configuration Release --no-restore
29
0 commit comments