Skip to content

Commit 0ff68ee

Browse files
committed
Create release_with_submodules.yml
1 parent 109c117 commit 0ff68ee

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: "Tag Release"
3+
4+
on:
5+
pull_request:
6+
types: [closed]
7+
8+
jobs:
9+
create-tag:
10+
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release')
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
17+
- name: Create Tag
18+
uses: negz/create-tag@v1

.github/workflows/release.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
name: 'Create Release'
3+
4+
on:
5+
workflow_run:
6+
workflows: ["Tag Release"]
7+
types:
8+
- completed
9+
10+
jobs:
11+
release:
12+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v3
17+
with:
18+
submodules: true
19+
20+
- name: Build Changelog
21+
id: github_release
22+
uses: mikepenz/release-changelog-builder-action@v3
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
with:
26+
configurationJson: |
27+
{
28+
"pr_template": "- #{{TITLE}} (##{{NUMBER}})",
29+
"categories": [
30+
{
31+
"title": "## Features",
32+
"labels": ["feature", "feat"]
33+
},
34+
{
35+
"title": "## Fixes",
36+
"labels": ["fix"]
37+
}
38+
]
39+
}
40+
- name: Create Release
41+
uses: mikepenz/[email protected]
42+
with:
43+
body: |
44+
${{steps.github_release.outputs.changelog}}
45+
46+
47+

0 commit comments

Comments
 (0)