Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
rimrul committed Nov 25, 2021
1 parent 35151cf commit b707e37
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Create GH release

# Create a GitHub release for each new tag.
# The release notes are taken from the release notes file
# modified in that commit located in Documentation/RelNotes directory.

on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+

permissions:
contents: write

jobs:
create-gh-release:
name: Create a new release or update an existing release in the GitHub repository
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Get version number
id: version-number
run: |
export GIT_VERSION=${GITHUB_REF#refs/tags/v}
- name: Create the release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: ${{ github.ref_name }}
body_path: Documentation/RelNotes/${{ env.GIT_VERSION }}.txt
draft: false
prerelease: false

0 comments on commit b707e37

Please sign in to comment.