ci: automatically create github release when tag is pushed

Fixes: https://github.com/xkbcommon/libxkbcommon/issues/233
Signed-off-by: Ran Benita <ran@unusedvar.com>
master
Ran Benita 2021-05-22 20:17:35 +03:00
parent 8507af731a
commit 1f7ffde982
1 changed files with 21 additions and 0 deletions

21
.github/workflows/github-release.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: release
on:
push:
tags:
- 'xkbcommon-*'
jobs:
build:
name: Automatically create GitHub release for tag
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: |
See the [NEWS](https://github.com/xkbcommon/libxkbcommon/blob/master/NEWS) file for the changes.