Skip to content

Commit e6db1f8

Browse files
committed
Add a workflow to automatically relase version tags.
1 parent 6b52428 commit e6db1f8

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: GitHub Release
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
Publish:
10+
permissions:
11+
contents: write
12+
runs-on: ubuntu-latest
13+
if: startsWith(github.ref, 'refs/tags/v')
14+
steps:
15+
- name: Calculate release name
16+
run: |
17+
GITHUB_REF=${{ github.ref }}
18+
RELEASE_NAME=${GITHUB_REF#"refs/tags/"}
19+
echo "RELEASE_NAME=${RELEASE_NAME}" >> $GITHUB_ENV
20+
- name: Publish release
21+
uses: actions/create-release@v1
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
with:
25+
tag_name: ${{ github.ref }}
26+
release_name: ${{ env.RELEASE_NAME }}
27+
draft: false
28+
prerelease: false

0 commit comments

Comments
 (0)