mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-23 00:57:26 +03:00
refactor
This commit is contained in:
parent
ff444a8ec9
commit
0cd8bbfc12
17
.github/workflows/android.yaml
vendored
17
.github/workflows/android.yaml
vendored
@ -62,18 +62,23 @@ jobs:
|
||||
- name: Upload artifacts
|
||||
run: |
|
||||
export REF=$(echo ${GITHUB_REF} | cut -d '/' -f 3,4,5,6,7 | sed -r 's/\//_/g')
|
||||
export FLUTTER_APK=build/app/outputs/flutter-apk
|
||||
export NATIVE_LIBS=build/app/intermediates/merged_native_libs/release/out/lib
|
||||
|
||||
mkdir artifacts
|
||||
mv build/app/outputs/flutter-apk/app-arm64-v8a-release.apk artifacts/yubico-authenticator-arm64-v8a-${REF}.apk
|
||||
mv build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk artifacts/yubico-authenticator-armeabi-v7a-${REF}.apk
|
||||
mv build/app/outputs/flutter-apk/app-x86_64-release.apk artifacts/yubico-authenticator-x86_64-${REF}.apk
|
||||
mv build/app/outputs/flutter-apk/app-release.apk artifacts/yubico-authenticator-${REF}.apk
|
||||
mv "${FLUTTER_APK}/app-arm64-v8a-release.apk" artifacts/yubico-authenticator-arm64-v8a-${REF}.apk
|
||||
mv "${FLUTTER_APK}/app-armeabi-v7a-release.apk" artifacts/yubico-authenticator-armeabi-v7a-${REF}.apk
|
||||
mv "${FLUTTER_APK}/app-x86_64-release.apk" artifacts/yubico-authenticator-x86_64-${REF}.apk
|
||||
mv "${FLUTTER_APK}/app-release.apk" artifacts/yubico-authenticator-${REF}.apk
|
||||
|
||||
mv build/app/outputs/mapping/release/mapping.txt artifacts/
|
||||
pushd build/app/intermediates/merged_native_libs/release/out/lib/
|
||||
|
||||
pushd ${NATIVE_LIBS}
|
||||
zip -r sym-arm64-v8a.zip arm64-v8a/*so
|
||||
zip -r sym-armeabi-v7a.zip armeabi-v7a/*so
|
||||
zip -r sym-x86_64.zip x86_64/*so
|
||||
popd
|
||||
mv build/app/intermediates/merged_native_libs/release/out/lib/*zip artifacts/
|
||||
mv "${NATIVE_LIBS}/*zip" artifacts/
|
||||
working-directory: ./app
|
||||
|
||||
- uses: actions/upload-artifact@v2
|
||||
|
Loading…
Reference in New Issue
Block a user