Skip to content

Commit b55e29e

Browse files
committed
Added Release Workflow
1 parent 6c1fe92 commit b55e29e

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Create Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
env:
9+
TAG: ${{ github.sha }}
10+
11+
jobs:
12+
build-and-publish:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
# Checkout the repository
17+
- name: Create GitHub Release
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
run: |
21+
VERSION=$(git describe --tags --abbrev=0)
22+
gh release create "$VERSION" \
23+
--title "$VERSION" \
24+
--generate-notes \
25+
--repo ${{ github.repository }}

0 commit comments

Comments
 (0)