Skip to content

Commit 969832d

Browse files
authored
ci: add auto release workflow (#12)
1 parent 7d56441 commit 969832d

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Releases
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
changelog:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: conventional Changelog Action
15+
id: changelog
16+
uses: TriPSs/conventional-changelog-action@v3.7.1
17+
with:
18+
github-token: ${{ secrets.GITHUB_TOKEN }}
19+
20+
- name: create release
21+
uses: actions/create-release@v1
22+
if: ${{ steps.changelog.outputs.skipped == 'false' }}
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
with:
26+
tag_name: ${{ steps.changelog.outputs.tag }}
27+
release_name: ${{ steps.changelog.outputs.tag }}
28+
body: ${{ steps.changelog.outputs.clean_changelog }}

0 commit comments

Comments
 (0)