diff --git a/.github/workflows/android-release.yml b/.github/workflows/android-release.yml index 62bd7f625f..f19c5eea2f 100644 --- a/.github/workflows/android-release.yml +++ b/.github/workflows/android-release.yml @@ -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'