Skip to content

Commit 1bda86e

Browse files
committed
update release workflows to handle version tags more accurately and adjust packaging command
1 parent 7d67a7b commit 1bda86e

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/release_stable.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ name: Release_Stable
33
on:
44
push:
55
tags:
6-
- "*.*.*-beta*"
7-
- "*.*.*-rc*"
6+
- "*.*.*"
7+
- "!*.*.*-beta*"
8+
- "!*.*.*-rc*"
89

910
jobs:
1011
build_artifact:
@@ -27,7 +28,7 @@ jobs:
2728
- name: Pack with dotnet
2829
env:
2930
VERSION: ${{ github.ref_name }}
30-
run: dotnet pack DisposeScope.sln --version-suffix $VERSION -o ./nugetpkgs -c Release --no-build
31+
run: dotnet pack DisposeScope.sln -p:PackageVersion=$VERSION -o ./nugetpkgs -c Release --no-build
3132
- name: Upload artifact
3233
uses: actions/upload-artifact@v4
3334
with:

.github/workflows/release_unstable.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ name: Release_Unstable
33
on:
44
push:
55
tags:
6-
- "*.*.*"
7-
- "!*.*.*-beta*"
8-
- "!*.*.*-rc*"
6+
- "*.*.*-beta*"
7+
- "*.*.*-rc*"
98

109
jobs:
1110
build_artifact:
@@ -28,7 +27,7 @@ jobs:
2827
- name: Pack with dotnet
2928
env:
3029
VERSION: ${{ github.ref_name }}
31-
run: dotnet pack DisposeScope.sln --version-suffix $VERSION -o ./nugetpkgs -c Release --no-build
30+
run: dotnet pack DisposeScope.sln -p:PackageVersion=$VERSION -o ./nugetpkgs -c Release --no-build
3231
- name: Upload artifact
3332
uses: actions/upload-artifact@v4
3433
with:

0 commit comments

Comments
 (0)