File tree 5 files changed +13
-13
lines changed
5 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 21
21
steps :
22
22
23
23
# Setup Java environment in order to build the Android app.
24
- - uses : actions/checkout@v3
24
+ - uses : actions/checkout@v4
25
25
- uses : actions/setup-java@v3
26
26
with :
27
27
distribution : ' temurin'
Original file line number Diff line number Diff line change 11
11
12
12
steps :
13
13
- name : Checkout
14
- uses : actions/checkout@v3
14
+ uses : actions/checkout@v4
15
15
- name : Publish
16
16
17
17
with :
Original file line number Diff line number Diff line change 1
1
name : Publish APK
2
2
3
3
on :
4
- # push:
5
- # branches:
4
+ push :
5
+ branches :
6
6
# - develop
7
7
# - master
8
- # - 2x
9
- release :
10
- types : [published]
8
+ - 2x
9
+ # release:
10
+ # types: [published]
11
11
12
12
jobs :
13
13
publish :
14
14
runs-on : ubuntu-latest
15
15
16
16
steps :
17
17
- name : Checkout
18
- uses : actions/checkout@v3
18
+ uses : actions/checkout@v4
19
19
- name : Setup Java
20
20
uses : actions/setup-java@v3
21
21
with :
Original file line number Diff line number Diff line change 1
- name : Create GitHub Release
1
+ name : Release
2
2
3
3
on :
4
4
push :
10
10
runs-on : ubuntu-latest
11
11
steps :
12
12
- name : Checkout repository
13
- uses : actions/checkout@v3
13
+ uses : actions/checkout@v4
14
14
15
15
- name : Extract version from tag
16
16
id : extract_version
22
22
id : release_notes
23
23
run : |
24
24
VERSION=${{ env.VERSION }}
25
- CHANGELOG=$(sed -n "/## $VERSION/,/^## /p" CHANGELOG.md | sed '$d')
25
+ CHANGELOG=$(sed -n "/## $VERSION/,/^## /p" CHANGELOG.md | sed '$d' | tail -n +2 )
26
26
if [ -z "$CHANGELOG" ]; then
27
27
echo "Release notes not found for version $VERSION"
28
28
exit 1
32
32
echo "EOF" >> $GITHUB_ENV
33
33
34
34
- name : Create GitHub release
35
- uses : softprops/action-gh-release@v1
35
+ uses : softprops/action-gh-release@v2
36
36
with :
37
37
body : ${{ env.RELEASE_NOTES }}
38
38
env :
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ cat CHANGELOG.md
16
16
echo " === End of CHANGELOG.md content ==="
17
17
18
18
# 从 CHANGELOG.md 中提取对应版本的变更日志
19
- CHANGELOG=$( sed -n " /## $VERSION /,/^## /p" CHANGELOG.md | sed ' $d' )
19
+ CHANGELOG=$( sed -n " /## $VERSION /,/^## /p" CHANGELOG.md | sed ' $d' | tail -n +2 )
20
20
21
21
if [ -z " $CHANGELOG " ]; then
22
22
echo " Version $VERSION not found in CHANGELOG.md"
You can’t perform that action at this time.
0 commit comments