Skip to content

Commit e44668e

Browse files
Trigger release on [published] (#6)
1 parent 162376b commit e44668e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/release.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: Release NuGet Package
22

33
on:
4-
push:
5-
tags:
6-
- 'v*' # Triggers on tags like v1.2.3
4+
release:
5+
types: [published]
76

87
jobs:
98
build-and-publish:
@@ -23,7 +22,7 @@ jobs:
2322

2423
- name: Extract version from tag
2524
id: get_version
26-
run: echo "PACKAGE_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
25+
run: echo "PACKAGE_VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
2726
- name: Build
2827
run: dotnet build --configuration Release --no-restore
2928

0 commit comments

Comments
 (0)