Skip to content

Commit 8b98c80

Browse files
committed
Fix version-suffix being set for releases
1 parent 5ea0f1e commit 8b98c80

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
"shell": "pwsh"
1818
}
1919
},
20-
"env": {
21-
"VERSION_SUFFIX": "alpha-${{ github.run_number }}"
22-
},
2320
"jobs": {
2421
"build": {
2522
"strategy": {
@@ -55,6 +52,11 @@
5552
"name": "Restore NuGet packages",
5653
"run": "dotnet restore --locked-mode"
5754
},
55+
{
56+
"name": "Set version suffix",
57+
"if": "github.event_name != 'release' || github.event.action != 'created'",
58+
"run": "'VERSION_SUFFIX=alpha-${{ github.run_number }} >> $env:GITHUB_ENV"
59+
},
5860
{
5961
"name": "Build",
6062
"run": "dotnet build EngageSoftware.Dnn.Logging.sln --no-restore --configuration ${{ matrix.configuration }} -p:VersionSuffix=${{ env.VERSION_SUFFIX }}"

0 commit comments

Comments
 (0)