File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 13
13
name : Version with GitVersion ${{ vars.GIT_VERSION }}
14
14
runs-on : ubuntu-latest
15
15
outputs :
16
- SemVer : ${{ steps.gitversion.outputs.fullSemVer }}
16
+ version : ${{ steps.gitversion.outputs.majorMinorPatch }}
17
+ versionSuffix : ${{ steps.gitversion.outputs.PreReleaseTag }}
17
18
steps :
18
19
- uses : actions/checkout@v3
19
20
with :
@@ -30,21 +31,23 @@ jobs:
30
31
useConfigFile : true
31
32
configFilePath : ./.gitversion/version.yml
32
33
- run : ' echo FullSemVer: ${{ env.fullSemVer }}'
34
+ - run : ' echo FullSemVer: ${{ env.majorMinorPatch }}'
33
35
34
36
build :
35
37
name : Build with .NET ${{ vars.DOTNET_VERSION }}
36
38
needs : [version]
37
39
runs-on : ubuntu-latest
38
40
env :
39
- semver : ${{ needs.version.outputs.SemVer }}
41
+ version : ${{ needs.version.outputs.version }}
42
+ versionSuffix : ${{ needs.version.outputs.versionSuffix }}
40
43
steps :
41
44
- uses : actions/checkout@v3
42
45
- name : Install .NET ${{ vars.DOTNET_VERSION }}
43
46
uses : actions/setup-dotnet@v4
44
47
with :
45
48
dotnet-version : ${{ vars.DOTNET_VERSION }}
46
49
- 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
48
51
- name : Upload Build
49
52
uses : actions/upload-artifact@v4
50
53
with :
You can’t perform that action at this time.
0 commit comments