Skip to content

Commit

Permalink
Update android-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Okuro3499 committed Jun 10, 2024
1 parent 8e5f4a7 commit 077de39
Showing 1 changed file with 26 additions and 15 deletions.
41 changes: 26 additions & 15 deletions .github/workflows/android-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,25 +105,36 @@ jobs:
releaseName: "${{ env.ANDROID_VERSION_CODE }} (${{ env.ANDROID_VERSION_NAME }})"
status: completed

- name: upload APK to Firebase Test Lab
- name: Upload APK to Firebase Test Lab
if: github.ref != 'refs/heads/master' && (matrix.build == 'lite')
uses: google/firebase-tools@latest
with:
project_id: myplanet-2eee1
env:
FIREBASE_TOKEN: ${{ secrets.ROBOT_KEY }}
run: |
ls -al output/
npm install -g firebase-tools
if [ -f output/myPlanet.apk ]; then
firebase test:android run \
--app=output/myPlanet.apk \
--type=robo \
--project=myplanet-2eee1 \
--results-bucket=myPlanet \
--results-dir=test-results/myPlanet/$(date +%Y%m%d_%H%M%S) \
--timeout=15m
else
echo "APK file not found!"
exit 1
fi
firebase login --token $FIREBASE_TOKEN
firebase test lab run --type robo --apk output/myPlanet.apk
# - name: upload APK to Firebase Test Lab
# if: github.ref != 'refs/heads/master' && (matrix.build == 'lite')
# env:
# FIREBASE_TOKEN: ${{ secrets.ROBOT_KEY }}
# run: |
# ls -al output/
# npm install -g firebase-tools
# if [ -f output/myPlanet.apk ]; then
# firebase test:android run \
# --app=output/myPlanet.apk \
# --type=robo \
# --project=myplanet-2eee1 \
# --results-bucket=myPlanet \
# --results-dir=test-results/myPlanet/$(date +%Y%m%d_%H%M%S) \
# --timeout=15m
# else
# echo "APK file not found!"
# exit 1
# fi

- name: rename APK and AAB with version and branch for artifact
if: github.ref != 'refs/heads/master'
Expand Down

0 comments on commit 077de39

Please sign in to comment.