Skip to content

Commit c5bc2d5

Browse files
committed
claims automatic build4
1 parent 7c94316 commit c5bc2d5

1 file changed

Lines changed: 6 additions & 20 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -30,35 +30,21 @@ jobs:
3030
with:
3131
cache-disabled: true
3232

33-
- name: Verify Gradle Tasks
34-
run: ./gradlew tasks
35-
3633
- name: Build release APK
3734
run: ./gradlew assemblecomoresDevDebug --stacktrace
3835
env:
3936
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
4037
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
4138
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
4239

43-
- name: Explore build directory
44-
run: ls -R .
45-
4640
- name: Rename APK
47-
id: rename_apk
48-
run: |
49-
if [ -f claimManagement/build/outputs/apk/bephaDev/debug/*.apk ]; then
50-
mv claimManagement/build/outputs/apk/bephaDev/debug/*.apk claims-comores-test.apk
51-
echo "renamed=true" >> $GITHUB_OUTPUT
52-
else
53-
echo "APK not found in expected location"
54-
echo "renamed=false" >> $GITHUB_OUTPUT
55-
# Try to find the APK elsewhere
56-
find . -name "*.apk" -type f
57-
fi
41+
run: mv app/build/outputs/apk/comoresDev/debug/app-comoresDev-debug.apk claims-comores-test.apk || echo "APK not found"
42+
43+
- name: List APK files
44+
run: ls -l policies-comores-test.apk || echo "APK not found"
5845

5946
- name: Upload APK
60-
if: steps.rename_apk.outputs.renamed == 'true'
6147
uses: actions/upload-artifact@v4
6248
with:
63-
name: claims-comores-test
64-
path: claims-comores-test.apk
49+
name: claims-comores-test.apk
50+
path: claims-comores-test.apk

0 commit comments

Comments
 (0)