Skip to content

Commit 5156403

Browse files
committed
Added create release action
1 parent def9c7e commit 5156403

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Create release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
name: Release pushed tag
14+
runs-on: ubuntu-22.04
15+
steps:
16+
- name: Create release
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
tag: ${{ github.ref_name }}
20+
run: |
21+
gh release create "$tag" \
22+
--repo="$GITHUB_REPOSITORY" \
23+
--title="${tag#v}" \
24+
--generate-notes

0 commit comments

Comments
 (0)