Skip to content

Commit

Permalink
fix: github workflow config aar file name
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminwan committed Oct 28, 2021
1 parent 8931e6e commit 30eb4a7
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,17 @@ jobs:
path: |
app/build/outputs/apk/cpu/release/*.apk
app/build/outputs/apk/gpu/release/*.apk
OcrLibrary/build/outputs/aar/*-release.aar
OcrLibrary/build/outputs/aar/*-cpu-release.aar
OcrLibrary/build/outputs/aar/*-gpu-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"
path1=$(find OcrLibrary/build/outputs/aar -name '*-cpu-release.aar' -type f | head -1)
path2=$(find OcrLibrary/build/outputs/aar -name '*-gpu-release.aar' -type f | head -1)
echo "::set-output name=path1::$path1"
echo "::set-output name=path2::$path2"
# 获取demo apk路径
- name: Get apk path
Expand Down Expand Up @@ -132,7 +135,8 @@ jobs:
- name: Show info
if: always()
run: |
echo '${{ steps.aar-path.outputs.path }}'
echo '${{ steps.aar-path.outputs.path1 }}'
echo '${{ steps.aar-path.outputs.path2 }}'
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 @@ -185,6 +189,7 @@ jobs:
files: |
${{ steps.apk-path.outputs.path1 }}
${{ steps.apk-path.outputs.path2 }}
${{ steps.aar-path.outputs.path }}
${{ steps.aar-path.outputs.path1 }}
${{ steps.aar-path.outputs.path2 }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 30eb4a7

Please sign in to comment.