Skip to content

Commit 7a6b89e

Browse files
committed
test
1 parent 35151cf commit 7a6b89e

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/create-release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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: Get version number
25+
shell: bash
26+
run: |
27+
echo GIT_VERSION=${GITHUB_REF#refs/tags/v} >> $GITHUB_ENV
28+
- name: Create the release
29+
uses: actions/create-release@v1
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
with:
33+
tag_name: ${{ github.ref_name }}
34+
release_name: ${{ github.ref_name }}
35+
body_path: Documentation/RelNotes/${{ env.GIT_VERSION }}.txt
36+
draft: false
37+
prerelease: false

0 commit comments

Comments
 (0)