Skip to content

Commit 4fe2050

Browse files
author
Petr Sramek
committed
kguyj
1 parent e69c87c commit 4fe2050

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/dotnet.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ jobs:
1313
name: Version with GitVersion ${{ vars.GIT_VERSION }}
1414
runs-on: ubuntu-latest
1515
outputs:
16-
version: ${{ steps.gitversion.outputs.majorMinorPatch }}
17-
versionSuffix: ${{ steps.gitversion.outputs.preReleaseTag }}
16+
VERSION: ${{ steps.gitversion.outputs.majorMinorPatch }}${{ PreReleaseTagWithDash }}
1817
steps:
1918
- uses: actions/checkout@v3
2019
with:
@@ -36,8 +35,7 @@ jobs:
3635
needs: [version]
3736
runs-on: ubuntu-latest
3837
env:
39-
version: ${{ needs.version.outputs.version }}
40-
versionSuffix: ${{ needs.version.outputs.versionSuffix }}
38+
VERSION: ${{ needs.version.outputs.VERSION }}
4139
steps:
4240
- uses: actions/checkout@v3
4341
- run: 'echo version: ${{ env.version }}'
@@ -47,7 +45,7 @@ jobs:
4745
with:
4846
dotnet-version: ${{ vars.DOTNET_VERSION }}
4947
- name: Build with .NET ${{ vars.DOTNET_VERSION }}
50-
run: dotnet build ./src/**/*.csproj --configuration ${{ vars.BUILD_CONFIGURATION }} /p:Platform=${{ vars.BUILD_PLATFORM }} -p:Version=${{ env.version }} -p:FileVersion=${{ env.version }} -p:AssemblyInformationalVersion=${{ env.version }} -p:VersionSuffix=${{ env.versionSuffix }}
48+
run: dotnet build ./src/**/*.csproj --configuration ${{ vars.BUILD_CONFIGURATION }} /p:Platform=${{ vars.BUILD_PLATFORM }} -p:Version=${{ env.VERSION }} -p:FileVersion=${{ env.VERSION }} -p:AssemblyInformationalVersion=${{ env.VERSION }}
5149
- name: Upload Build
5250
uses: actions/upload-artifact@v4
5351
with:

0 commit comments

Comments
 (0)