Skip to content

Commit 5578f44

Browse files
committed
chore: github action
1 parent b7b2f82 commit 5578f44

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"categories": [
3+
{
4+
"title": "## 🚀 Features",
5+
"labels": [
6+
"feature",
7+
"feat"
8+
]
9+
},
10+
{
11+
"title": "## 🐛 Fixes",
12+
"labels": [
13+
"fix",
14+
"bug",
15+
"fixed"
16+
]
17+
},
18+
{
19+
"title": "## 🧪 Tests",
20+
"labels": [
21+
"test"
22+
]
23+
}
24+
],
25+
"sort": "ASC",
26+
"template": "${{CHANGELOG}}\n\n<details>\n<summary>Uncategorized</summary>\n\n${{UNCATEGORIZED}}\n</details>",
27+
"pr_template": "- ${{TITLE}}\n - PR: #${{NUMBER}}",
28+
"empty_template": "- no changes",
29+
"transformers": [
30+
{
31+
"pattern": "[\\-\\*] (\\[(...|TEST|CI|SKIP)\\])( )?(.+?)\n(.+?[\\-\\*] )(.+)",
32+
"target": "- $4\n - $6"
33+
}
34+
],
35+
"max_tags_to_fetch": 200,
36+
"max_pull_requests": 200,
37+
"max_back_track_time_days": 90,
38+
"exclude_merge_branches": [
39+
"Owner/qa"
40+
]
41+
}

.github/workflows/build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,23 @@ jobs:
4747
- name: Rename Apk Name
4848
run: cp android/app/build/outputs/apk/release/app-release.apk android/app/build/outputs/apk/release/v2hub-${{ steps.get_version.outputs.VERSION }}.apk
4949

50+
- name: build changelog
51+
id: build_changelog
52+
if: startsWith(github.ref, 'refs/tags/')
53+
uses: mikepenz/[email protected]
54+
env:
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
with:
57+
configuration: ".config/changelog_configuration.json"
58+
ignorePreReleases: "false"
59+
fromTag: "0.3.0"
60+
toTag: "10.0.0"
61+
5062
- name: Create Release
5163
uses: softprops/action-gh-release@v1
5264
if: startsWith(github.ref, 'refs/tags/')
5365
with:
66+
body: ${{steps.build_changelog.outputs.changelog}}
5467
files: |
5568
android/app/build/outputs/apk/release/v2hub-${{ steps.get_version.outputs.VERSION }}.apk
5669
env:

0 commit comments

Comments
 (0)