Skip to content

Commit

Permalink
edit github workflow config,上传aar文件作为release
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminwan committed Oct 28, 2021
1 parent a3ee597 commit 2a65513
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,14 @@ jobs:
path: |
app/build/outputs/apk/cpu/release/*.apk
app/build/outputs/apk/gpu/release/*.apk
OcrLibrary/build/outputs/aar/*-release.aar
# 获取 aar路径(需要定制)
- name: Get aar path
id: aar-path
run: |
path=$(find OcrLibrary/build/outputs/aar -name '*release.aar' -type f | head -1)
echo "::set-output name=path::$path"
# 获取demo apk路径
- name: Get apk path
Expand Down Expand Up @@ -125,6 +132,7 @@ jobs:
- name: Show info
if: always()
run: |
echo '${{ steps.aar-path.outputs.path }}'
echo '${{ steps.apk-path.outputs.path1 }}'
echo '${{ steps.apk-path.outputs.path2 }}'
echo '${{ steps.apk-info.outputs.result }}' # get apk info success or failure
Expand Down Expand Up @@ -177,5 +185,6 @@ jobs:
files: |
${{ steps.apk-path.outputs.path1 }}
${{ steps.apk-path.outputs.path2 }}
${{ steps.aar-path.outputs.path }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2a65513

Please sign in to comment.