88jobs :
99 build-and-upload :
1010 runs-on : ubuntu-latest
11-
11+
1212 steps :
1313 - name : Checkout code
1414 uses : actions/checkout@v4
15-
15+
1616 - name : Set up JDK 17
1717 uses : actions/setup-java@v4
1818 with :
1919 java-version : ' 17'
2020 distribution : ' temurin'
21-
21+
2222 - name : Setup Bazel
2323 uses :
bazel-contrib/[email protected] 2424 with :
2525 bazelisk-cache : true
2626 disk-cache : ${{ github.workflow }}
2727 repository-cache : true
28-
28+
2929 - name : Build AndroidX Test m2repository
3030 run : |
3131 bazel build :axt_m2repository
32-
32+
3333 - name : Extract APKs from m2repository
3434 run : |
3535 unzip -o bazel-bin/axt_m2repository.zip -d extracted/
36-
36+
3737 - name : Create output directory
3838 run : mkdir -p apk-outputs
39-
39+
4040 - name : Copy APKs to output directory
4141 run : |
4242 # Copy test services APK
4646 cp extracted/repository/androidx/test/orchestrator/1.7.0-alpha01/orchestrator-1.7.0-alpha01.apk apk-outputs/android-test-orchestrator.apk
4747
4848 ls -la apk-outputs/
49-
49+
5050 - name : Upload APKs to Release
5151 if : github.event_name == 'release'
5252 uses : softprops/action-gh-release@v2
@@ -55,13 +55,13 @@ jobs:
5555 apk-outputs/android-test-orchestrator.apk
5656 apk-outputs/android-test-services.apk
5757 env :
58- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
59-
58+ GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
59+
6060 - name : Upload APKs as Artifacts (for workflow_dispatch)
6161 if : github.event_name == 'workflow_dispatch'
6262 uses : actions/upload-artifact@v4
6363 with :
6464 name : android-test-apks
6565 path : |
6666 apk-outputs/android-test-orchestrator.apk
67- apk-outputs/android-test-services.apk
67+ apk-outputs/android-test-services.apk
0 commit comments