Skip to content

Commit b69847e

Browse files
committed
edit workflow config
1 parent 57c585f commit b69847e

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

.github/workflows/android.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
rm -f ~/.gradle/caches/modules-2/modules-2.lock
4545
rm -f ~/.gradle/caches/modules-2/gc.properties
4646
47-
# 上传apk 到action
47+
# 上传apk 到action(需要定制)
4848
# https://github.com/marketplace/actions/upload-a-build-artifact
4949
- name: Upload APK/AAR
5050
uses: actions/upload-artifact@v2
@@ -56,23 +56,23 @@ jobs:
5656
SwipeMenuLayout-Helper/build/outputs/aar/*-release.aar
5757
SwipeMenuLayout-EpoxyHelper/build/outputs/aar/*-release.aar
5858
59-
# 获取Core aar路径
60-
- name: Get Core aar path
61-
id: Core-path
59+
# 获取Core aar路径(需要定制)
60+
- name: Get core aar path
61+
id: core-path
6262
run: |
6363
path=$(find SwipeMenuLayout-Core/build/outputs/aar -name '*release.aar' -type f | head -1)
6464
echo "::set-output name=path::$path"
6565
66-
# 获取Helper aar路径
66+
# 获取Helper aar路径(需要定制)
6767
- name: Get Helper aar path
68-
id: Helper-path
68+
id: helper-path
6969
run: |
7070
path=$(find SwipeMenuLayout-Helper/build/outputs/aar -name '*release.aar' -type f | head -1)
7171
echo "::set-output name=path::$path"
7272
73-
# 获取EpoxyHelper aar路径
73+
# 获取EpoxyHelper aar路径(需要定制)
7474
- name: Get EpoxyHelper aar path
75-
id: EpoxyHelper-path
75+
id: epoxyhelper-path
7676
run: |
7777
path=$(find SwipeMenuLayout-EpoxyHelper/build/outputs/aar -name '*release.aar' -type f | head -1)
7878
echo "::set-output name=path::$path"
@@ -111,13 +111,13 @@ jobs:
111111
echo "$log"
112112
echo "::set-output name=log::"$log""
113113
114-
# 显示信息
114+
# 显示信息(需要定制)
115115
- name: Show info
116116
if: always()
117117
run: |
118-
echo '${{ steps.Core-path.outputs.path }}' # Core aar路径
119-
echo '${{ steps.Helper-path.outputs.path }}' # Helper aar路径
120-
echo '${{ steps.EpoxyHelper-path.outputs.path }}' # EpoxyHelper aar路径
118+
echo '${{ steps.core-path.outputs.path }}'
119+
echo '${{ steps.helper-path.outputs.path }}'
120+
echo '${{ steps.epoxyhelper-path.outputs.path }}'
121121
echo '${{ steps.apk-path.outputs.path }}'
122122
echo '${{ steps.apk-info.outputs.result }}' # get apk info success or failure
123123
echo '${{ steps.time.outputs.time }}'
@@ -146,7 +146,7 @@ jobs:
146146
payload: '{"msgtype": "text", "text": {"content": "版本更新: ${{ steps.apk-info.outputs.application-name }}-版本号: ${{ steps.apk-info.outputs.version-name }} \n 编译时间: ${{ steps.time.outputs.time }} \n 距上个正式版的更新记录: \n${{ steps.git-log.outputs.log }}"}}'
147147
headers: '{"Content-Type": "application/json"}'
148148

149-
# 创建Changelog文件 triggered by git tag push,
149+
# 创建Changelog文件 triggered by git tag push
150150
- name: Generate Changelog
151151
if: startsWith(github.ref, 'refs/tags/')
152152
run: |
@@ -158,7 +158,7 @@ jobs:
158158
run: |
159159
cat Release.txt
160160
161-
# 创建Release triggered by git tag push,
161+
# 创建Release triggered by git tag push(需要定制)
162162
# https://github.com/marketplace/actions/gh-release
163163
- name: Release
164164
uses: softprops/action-gh-release@v1
@@ -168,8 +168,8 @@ jobs:
168168
draft: true
169169
files: |
170170
${{ steps.apk-path.outputs.path }}
171-
${{ steps.Core-path.outputs.path }}
172-
${{ steps.Helper-path.outputs.path }}
173-
${{ steps.EpoxyHelper-path.outputs.path }}
171+
${{ steps.core-path.outputs.path }}
172+
${{ steps.helper-path.outputs.path }}
173+
${{ steps.epoxyhelper-path.outputs.path }}
174174
env:
175175
GITHUB_TOKEN: ${{ secrets.RELEASE_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)