File tree 2 files changed +10
-5
lines changed
2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 23
23
id : version # step id used as reference for output values
24
24
uses : gittools/actions/gitversion/execute@v3.0.0
25
25
26
- - name : Print GitVersion_SemVer
27
- run : echo "The GitVersion_SemVer is ${{ env.GitVersion_SemVer }}"
26
+ - name : Print GitVersion_MajorMinorPatch
27
+ run : echo "The GitVersion_MajorMinorPatch is ${{ env.GitVersion_MajorMinorPatch }}"
28
28
- name : Setup .NET SDK
29
29
uses : actions/setup-dotnet@v1
30
30
with :
@@ -34,12 +34,12 @@ jobs:
34
34
run : dotnet restore CronScheduler.sln
35
35
36
36
- name : Build
37
- run : dotnet build CronScheduler.sln --configuration Release --no-restore /p:Version=${{ env.GitVersion_SemVer }}
37
+ run : dotnet build CronScheduler.sln --configuration Release --no-restore /p:Version=${{ env.GitVersion_MajorMinorPatch }}
38
38
39
39
- name : Test
40
40
run : dotnet test
41
41
42
42
- name : Publish NuGet package
43
43
run : |
44
- dotnet pack src/YourProject/YourProject.csproj --configuration Release --output ./nupkg /p:Version=${{ env.GitVersion_SemVer }} /p:Version=${{ env.GitVersion_SemVer }}
44
+ dotnet pack src/YourProject/YourProject.csproj --configuration Release --output ./nupkg /p:Version=${{ env.GitVersion_MajorMinorPatch }} /p:Version=${{ env.GitVersion_MajorMinorPatch }}
45
45
dotnet nuget push ./nupkg/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
Original file line number Diff line number Diff line change 1
1
mode : ContinuousDelivery
2
2
branches :
3
3
main :
4
- regex : ^main $
4
+ regex : ^master $
5
5
label : ' '
6
6
increment : Patch
7
7
is-release-branch : true
@@ -17,6 +17,11 @@ branches:
17
17
regex : ^chore[/-]
18
18
label : beta
19
19
increment : None
20
+ # Fallback configuration for any branch not matching the above patterns
21
+ other :
22
+ regex : .*
23
+ label : ' '
24
+ increment : Patch
20
25
pull-request :
21
26
regex : ^(pull|pr)[/-]
22
27
label : alpha
You can’t perform that action at this time.
0 commit comments