File tree 3 files changed +74
-24
lines changed
3 files changed +74
-24
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
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
+
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
+
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
Original file line number Diff line number Diff line change 5
5
- main
6
6
tags :
7
7
- ' v[0-9]+.[0-9]+.[0-9]+*' # match basic semver tags
8
- pull_request :
9
- branches :
8
+ pull_request :
9
+ branches :
10
10
- main
11
11
- ' release-*'
12
12
62
62
run : |
63
63
semgrep --config "p/r2c" .
64
64
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
+
You can’t perform that action at this time.
0 commit comments