File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 DOTNET_VERSION : ' 10.x'
77
88on :
9- pull_request :
10- types : [ closed ]
9+ push :
10+ tags :
11+ - ' [0-9]+.[0-9]+.[0-9]+'
1112 branches : [ main ]
1213 workflow_dispatch :
1314
@@ -16,13 +17,11 @@ permissions:
1617
1718jobs :
1819 build :
19- if : github.event.pull_request.merged == true
2020 runs-on : ubuntu-latest
21-
2221 steps :
2322 - uses : actions/checkout@v6
2423
25- - name : Set up .NET Core
24+ - name : Set up .NET
2625 uses : actions/setup-dotnet@v5
2726 with :
2827 dotnet-version : ${{ env.DOTNET_VERSION }}
5756 name : .net-app
5857 path : ${{env.DOTNET_ROOT}}/REG
5958
59+ github-release :
60+ needs : build
61+ runs-on : ubuntu-latest
62+ steps :
63+ - name : Create GitHub Release
64+ uses : softprops/action-gh-release@v2
65+ with :
66+ generate_release_notes : true
67+ tag_name : ${{ github.ref_name }}
68+ env :
69+ GITHUB_TOKEN : ${{ env.RELEASE_TOKEN }}
70+
6071 deploy :
6172 permissions :
6273 contents : none
You can’t perform that action at this time.
0 commit comments