Skip to content

Commit 2697404

Browse files
author
Petr Sramek
committed
dsfs
1 parent ea32721 commit 2697404

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/dotnet.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ jobs:
1313
name: Version with GitVersion ${{ vars.GIT_VERSION }}
1414
runs-on: ubuntu-latest
1515
outputs:
16-
SemVer: ${{ steps.gitversion.outputs.fullSemVer }}
16+
version: ${{ steps.gitversion.outputs.majorMinorPatch }}
17+
versionSuffix: ${{ steps.gitversion.outputs.PreReleaseTag }}
1718
steps:
1819
- uses: actions/checkout@v3
1920
with:
@@ -30,21 +31,23 @@ jobs:
3031
useConfigFile: true
3132
configFilePath: ./.gitversion/version.yml
3233
- run: 'echo FullSemVer: ${{ env.fullSemVer }}'
34+
- run: 'echo FullSemVer: ${{ env.majorMinorPatch }}'
3335

3436
build:
3537
name: Build with .NET ${{ vars.DOTNET_VERSION }}
3638
needs: [version]
3739
runs-on: ubuntu-latest
3840
env:
39-
semver: ${{ needs.version.outputs.SemVer }}
41+
version: ${{ needs.version.outputs.version }}
42+
versionSuffix: ${{ needs.version.outputs.versionSuffix }}
4043
steps:
4144
- uses: actions/checkout@v3
4245
- name: Install .NET ${{ vars.DOTNET_VERSION }}
4346
uses: actions/setup-dotnet@v4
4447
with:
4548
dotnet-version: ${{ vars.DOTNET_VERSION }}
4649
- name: Build with .NET ${{ vars.DOTNET_VERSION }}
47-
run: dotnet build ./src/**/*.csproj --configuration ${{ vars.BUILD_CONFIGURATION }} /p:Platform=${{ vars.BUILD_PLATFORM }} -p:Version=$env:semver -p:FileVersion=$env:semver
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
4851
- name: Upload Build
4952
uses: actions/upload-artifact@v4
5053
with:

src/PolylineAlgorithm/AssemblyInfo.cs

Whitespace-only changes.

0 commit comments

Comments
 (0)