Skip to content

Commit bf404f5

Browse files
committed
feat: Add release workflow
1 parent b7ebf1c commit bf404f5

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: "Release"
2+
on:
3+
push:
4+
tags:
5+
- "v[0-9]+.[0-9]+.[0-9]+"
6+
jobs:
7+
build-release:
8+
name: Build and Release
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v3
13+
- name: "Extract data from tag: version, message, body"
14+
id: tag
15+
run: |
16+
git fetch --tags --force
17+
- name: Build Changelog
18+
id: build_changelog
19+
uses: mikepenz/[email protected]
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
- name: Create Release
23+
uses: softprops/action-gh-release@v1
24+
if: startsWith(github.ref, 'refs/tags/')
25+
with:
26+
body: ${{steps.build_changelog.outputs.changelog}}
27+
draft: false
28+
prerelease: false
29+
name: ${{ github.ref_name }}
30+
tag_name: ${{ github.ref_name }}
31+
fail_on_unmatched_files: true
32+
generate_release_notes: true

0 commit comments

Comments
 (0)