@@ -2,7 +2,7 @@ name: Publish Terminal.Gui
2
2
3
3
on :
4
4
push :
5
- branches : [ v1_release, v1_develop, v2_release, v2_develop ]
5
+ branches : [ v1_release, v1_develop ]
6
6
tags :
7
7
- v*
8
8
paths-ignore :
@@ -18,17 +18,16 @@ jobs:
18
18
with :
19
19
fetch-depth : 0 # fetch-depth is needed for GitVersion
20
20
21
- - name : Install GitVersion
22
- uses : gittools/actions/gitversion/setup@v1
21
+ - name : Install GitVersion
22
+ uses : gittools/actions/gitversion/setup@v3.1.11
23
23
with :
24
- versionSpec : ' 5.x'
25
- includePrerelease : true
24
+ versionSpec : ' 6.0.x'
26
25
27
26
- name : Determine Version
28
- uses : gittools/actions/gitversion/execute@v1
27
+ uses : gittools/actions/gitversion/execute@v3.1.11
29
28
with :
30
29
useConfigFile : true
31
- # additionalArguments: /b develop
30
+ updateAssemblyInfo : true
32
31
id : gitversion # step id used as reference for output values
33
32
34
33
- name : Setup dotnet
@@ -42,11 +41,11 @@ jobs:
42
41
43
42
- name : Build Release
44
43
run : |
45
- dotnet-gitversion /updateprojectfiles
46
- dotnet build --no-restore -c Release
44
+ dotnet build Terminal.Gui/Terminal.Gui.csproj --no-incremental --nologo --force --configuration Release
45
+ dotnet test Terminal.Gui/Terminal.Gui.csproj --configuration Release
47
46
48
47
- name : Pack
49
- run : dotnet pack -c Release --include-symbols -p:Version='${{ steps.gitversion.outputs.SemVer }}'
48
+ run : dotnet pack Terminal.Gui/Terminal.Gui.csproj -c Release --include-symbols -p:Version='${{ steps.gitversion.outputs.SemVer }}'
50
49
51
50
# - name: Test to generate Code Coverage Report
52
51
# run: |
71
70
# echo "Badge data: ${{steps.create_coverage_badge.outputs.badge}}"
72
71
73
72
- name : Publish to NuGet.org
74
- run : dotnet nuget push Terminal.Gui/bin/Release/Terminal.Gui.${{ steps.gitversion.outputs.SemVer }}.nupkg --api-key ${{ secrets.NUGET_API_KEY }}
73
+ run : dotnet nuget push Terminal.Gui/bin/Release/Terminal.Gui.${{ steps.gitversion.outputs.SemVer }}.nupkg --api-key ${{ secrets.NUGET_API_KEY }}
0 commit comments