Skip to content

Commit

Permalink
Fix version-suffix being set for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
bdukes committed Mar 23, 2023
1 parent 5ea0f1e commit 8b98c80
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"shell": "pwsh"
}
},
"env": {
"VERSION_SUFFIX": "alpha-${{ github.run_number }}"
},
"jobs": {
"build": {
"strategy": {
Expand Down Expand Up @@ -55,6 +52,11 @@
"name": "Restore NuGet packages",
"run": "dotnet restore --locked-mode"
},
{
"name": "Set version suffix",
"if": "github.event_name != 'release' || github.event.action != 'created'",
"run": "'VERSION_SUFFIX=alpha-${{ github.run_number }} >> $env:GITHUB_ENV"
},
{
"name": "Build",
"run": "dotnet build EngageSoftware.Dnn.Logging.sln --no-restore --configuration ${{ matrix.configuration }} -p:VersionSuffix=${{ env.VERSION_SUFFIX }}"
Expand Down

0 comments on commit 8b98c80

Please sign in to comment.