Skip to content

Commit c63d849

Browse files
committed
test
1 parent 35151cf commit c63d849

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/create-release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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

0 commit comments

Comments
 (0)