Skip to content

Commit 3a80ee6

Browse files
committed
ci: using conventional commit based release workflow
1 parent 283aa60 commit 3a80ee6

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release
2+
on:
3+
push:
4+
tags:
5+
- "*"
6+
7+
jobs:
8+
changelog:
9+
runs-on: ubuntu-latest
10+
name: create release on tag
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
# This action generates change long with then the release action consumes
16+
- name: Conventional Changelog Action
17+
id: changelog
18+
uses: TriPSs/conventional-changelog-action@v3
19+
with:
20+
skip-commit: "true"
21+
22+
- name: Create Release
23+
uses: actions/create-release@v1
24+
if: ${{ steps.changelog.outputs.skipped == 'false' }}
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.github_token }}
27+
with:
28+
tag_name: ${{ steps.changelog.outputs.tag }}
29+
release_name: ${{ steps.changelog.outputs.tag }}
30+
body: ${{ steps.changelog.outputs.clean_changelog }}

0 commit comments

Comments
 (0)