Skip to content

Commit c360f65

Browse files
committed
Update release workflow
1 parent 66a8b1d commit c360f65

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ env:
77

88
on:
99
push:
10-
branches:
11-
- main
10+
tags:
11+
- '[0-9]+.[0-9]+.[0-9]+'
1212

1313
permissions:
1414
contents: read
@@ -48,6 +48,18 @@ jobs:
4848
name: .net-app
4949
path: ${{env.DOTNET_ROOT}}/Open5ETools
5050

51+
github-release:
52+
runs-on: ubuntu-latest
53+
needs: build
54+
steps:
55+
- name: Create GitHub Release
56+
uses: softprops/action-gh-release@v2
57+
with:
58+
generate_release_notes: true
59+
tag_name: ${{ github.ref_name }}
60+
env:
61+
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
62+
5163
deploy:
5264
runs-on: ubuntu-latest
5365
needs: build

0 commit comments

Comments
 (0)