Skip to content

Commit bf59d47

Browse files
authored
Create ci.yml
1 parent 86a384f commit bf59d47

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Realse Version
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths-ignore:
8+
- 'README.md'
9+
- 'CONTRIBUTING.md'
10+
- '.gitignore'
11+
- '.github/**'
12+
13+
jobs:
14+
releaseGithub:
15+
if: github.ref == 'refs/heads/main'
16+
runs-on: ubuntu-22.04
17+
permissions:
18+
contents: write
19+
pull-requests: write
20+
steps:
21+
- name: Bump version and push tag
22+
id: bump
23+
uses: mathieudutour/github-tag-action@v6.2
24+
with:
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
default_bump: patch
27+
28+
- name: Build Changelog
29+
id: github_release
30+
uses: mikepenz/release-changelog-builder-action@v5
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
fromTag: ${{ steps.bump.outputs.previous_tag }}
34+
toTag: ${{ steps.bump.outputs.new_tag }}
35+
36+
- name: Create Release
37+
uses: softprops/action-gh-release@v2
38+
with:
39+
body: ${{ steps.bump.outputs.changelog }}
40+
tag_name: ${{ steps.bump.outputs.new_tag }}

0 commit comments

Comments
 (0)