@@ -4,15 +4,27 @@ on: [push]
44
55jobs :
66 build :
7-
87 runs-on : ubuntu-latest
9-
108 steps :
11- - uses : actions/checkout@v2
9+ - uses : actions/checkout@v4
10+ with :
11+ fetch-depth : 0
1212 - name : Setup .NET
1313 uses : actions/setup-dotnet@v1
1414 with :
1515 dotnet-version : 8.0.x
16+ - name : Version Increment
17+ id : version
18+ 19+ with :
20+ scheme : calver
21+ increment : patch
22+ - name : DotNet Bump Versions
23+ 24+ with :
25+ version_files : " **/*.csproj"
26+ version_mask : " 1.1.1.1"
27+ version_overwrite : " ${{ steps.version.outputs.major-version }}.${{ steps.version.outputs.minor-version }}.${{ steps.version.outputs.patch-version }}.0"
1628 - name : Publish with dotnet
1729 run : dotnet publish ./src --configuration Release --output build
1830 - name : Deploy to Github Pages
2133 ACCESS_TOKEN : ${{ secrets.ACCESS_TOKEN }}
2234 BASE_BRANCH : main # The branch the action should deploy from.
2335 BRANCH : gh-pages-from-actions # The branch the action should deploy to.
24- FOLDER : build/wwwroot # The folder the action should deploy.
36+ FOLDER : build/wwwroot # The folder the action should deploy.
2537 SINGLE_COMMIT : true
38+
39+ release :
40+ runs-on : ubuntu-latest
41+ needs : [build]
42+ if : always() && !failure() && !cancelled()
43+ steps :
44+ - name : Version Increment
45+ id : version
46+ 47+ with :
48+ scheme : calver
49+ use_api : true
50+ -
uses :
" marvinpinto/[email protected] " 51+ with :
52+ repo_token : " ${{ secrets.GITHUB_TOKEN }}"
53+ prerelease : false
54+ automatic_release_tag : " v${{ steps.version.outputs.major-version }}.${{ steps.version.outputs.minor-version }}.${{ steps.version.outputs.patch-version }}"
0 commit comments