Skip to content

Commit e82ef8b

Browse files
authored
Update Release CI/CD (#67)
1 parent fc30870 commit e82ef8b

1 file changed

Lines changed: 16 additions & 5 deletions

File tree

.github/workflows/main.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ env:
66
DOTNET_VERSION: '10.x'
77

88
on:
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

1718
jobs:
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 }}
@@ -57,6 +56,18 @@ jobs:
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

0 commit comments

Comments
 (0)