File tree 2 files changed +37
-0
lines changed
2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -7,3 +7,6 @@ insert_final_newline = true
7
7
indent_style = space
8
8
indent_size = 4
9
9
tab_width = 4
10
+
11
+ [{* .yml,* .yaml} ]
12
+ indent_size = 2
Original file line number Diff line number Diff line change
1
+ on :
2
+ push :
3
+ tags : ["*"]
4
+ jobs :
5
+ release :
6
+ runs-on : ubuntu-latest
7
+ steps :
8
+ - name : Clone Repository
9
+ uses : actions/checkout@v4
10
+ - name : Setup Node
11
+ uses : actions/setup-node@v4
12
+ with :
13
+ node-version : 18
14
+ - name : Build Release
15
+ run : npm run build
16
+ - name : Grab Changelog from Commit Message Body
17
+ run : |
18
+ changelog=$(echo -e "$MESSAGE" | sed -n '/^$/,$p' | sed '1d')
19
+ echo -e "$changelog"
20
+ {
21
+ echo 'CHANGELOG<<EOF'
22
+ echo -e "$changelog"
23
+ echo EOF
24
+ } >> "$GITHUB_ENV"
25
+ env :
26
+ MESSAGE : ${{ github.event.head_commit.message }}
27
+ - name : Upload Release
28
+ uses : softprops/action-gh-release@v2
29
+ with :
30
+ body : ${{ env.CHANGELOG }}
31
+ files : |
32
+ main.js
33
+ manifest.json
34
+ styles.css
You can’t perform that action at this time.
0 commit comments