File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Create GH release
2
+
3
+ # Create a GitHub release for each new tag.
4
+ # The release notes are taken from the release notes file
5
+ # modified in that commit located in Documentation/RelNotes directory.
6
+
7
+ on :
8
+ push :
9
+ tags :
10
+ - v[0-9]+.[0-9]+.[0-9]+
11
+
12
+ permissions :
13
+ contents : write
14
+
15
+ jobs :
16
+ create-gh-release :
17
+ name : Create a new release or update an existing release in the GitHub repository
18
+ runs-on : ubuntu-latest
19
+ steps :
20
+ - name : Checkout the repository
21
+ uses : actions/checkout@v2
22
+ with :
23
+ fetch-depth : 1
24
+ - name : Create the release
25
+ uses : actions/create-release@v1
26
+ env :
27
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28
+ with :
29
+ tag_name : ${{ github.ref_name }}
30
+ release_name : ${{ github.ref_name }}
31
+ body_path : Documentation/RelNotes/${GITHUB_REF#refs/tags/v}.txt
32
+ draft : false
33
+ prerelease : false
You can’t perform that action at this time.
0 commit comments