Skip to content

Commit 44b3d2c

Browse files
rebase feature branch onto main commit history
1 parent 1fe5d6d commit 44b3d2c

File tree

3 files changed

+74
-24
lines changed

3 files changed

+74
-24
lines changed

.github/changelog-configuration.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"categories": [
3+
{
4+
"title": "## What's Added",
5+
"labels": ["feat"],
6+
},
7+
{
8+
"title": "## What's Fixed",
9+
"labels": ["fix"],
10+
},
11+
{
12+
"title": "## What's Updated",
13+
"labels": ["update"],
14+
},
15+
{
16+
"title": "## Uncategorized",
17+
"labels": [],
18+
},
19+
],
20+
"template": "#{{CHANGELOG}}",
21+
"pr_template": "* #{{TITLE}} by @#{{AUTHOR}} in ##{{NUMBER}}"
22+
}

.github/workflows/build_release.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
on:
2+
workflow_dispatch:
3+
inputs:
4+
version:
5+
description: "Release version (e.g., 1.1.0)"
6+
required: true
7+
type: string
8+
9+
name: Build Release
10+
11+
jobs:
12+
build-release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Get current date
19+
id: date
20+
run: |
21+
echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
22+
23+
- name: Build Assets
24+
run: git ls-files | zip LME-${{ inputs.version }}.zip -@
25+
26+
- name: Build Changelog
27+
id: release
28+
uses: mikepenz/[email protected]
29+
with:
30+
toTag: "release-${{ inputs.version }}"
31+
configuration: ".github/changelog-configuration.json"
32+
failOnError: true
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
36+
- name: Create Draft Release
37+
uses: softprops/[email protected]
38+
with:
39+
name: LME v${{ inputs.version }}
40+
tag_name: v${{ inputs.version }}
41+
body: |
42+
## [${{ inputs.version }}] - Timberrrrr! - ${{ env.date }}
43+
${{ steps.release.outputs.changelog }}
44+
files: LME-${{ inputs.version }}.zip
45+
draft: true
46+
prerelease: false
47+
discussion_category_name: "Announcements"
48+
generate_release_notes: false
49+
fail_on_unmatched_files: true

.github/workflows/main.yml

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ on:
55
- main
66
tags:
77
- 'v[0-9]+.[0-9]+.[0-9]+*' # match basic semver tags
8-
pull_request:
9-
branches:
8+
pull_request:
9+
branches:
1010
- main
1111
- 'release-*'
1212

@@ -62,25 +62,4 @@ jobs:
6262
run: |
6363
semgrep --config "p/r2c" .
6464
65-
release:
66-
runs-on: ubuntu-latest
67-
if: startsWith(github.ref, 'refs/tags/v')
68-
needs: [lint, semgrep-scan]
69-
steps:
70-
- name: Checkout
71-
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
72-
73-
- name: Set up tag name
74-
id: tag
75-
run: echo "::set-output name=tag::${GITHUB_REF##*/}"
76-
77-
- name: Build
78-
run: git ls-files | zip release-${{ steps.tag.outputs.tag }}.zip -@
79-
80-
- name: Release
81-
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v0.1.15
82-
with:
83-
files: release-${{ steps.tag.outputs.tag }}.zip
84-
draft: true
85-
generate_release_notes: true
86-
fail_on_unmatched_files: true
65+

0 commit comments

Comments
 (0)