Skip to content

Commit 1f2424b

Browse files
committed
claims automatic build2
1 parent 3546179 commit 1f2424b

1 file changed

Lines changed: 22 additions & 16 deletions

File tree

.github/workflows/build.yml

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: develop-comores
1+
name: Android CI/CD - Policies Comores
22

33
on:
44
push:
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
build:
11-
name: Build APK
11+
name: Build and Publish APK
1212
runs-on: ubuntu-latest
1313

1414
steps:
@@ -24,28 +24,34 @@ jobs:
2424
- name: Decode keystore
2525
run: |
2626
echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 --decode > policies_comores.jks
27+
echo "Keystore file created:"
28+
ls -lh policies_comores.jks
2729
28-
- name: Set up Gradle
29-
uses: gradle/gradle-build-action@v2
30-
with:
31-
cache-disabled: true
32-
30+
- name: Grant execute permission to gradlew
31+
run: chmod +x gradlew
3332

34-
- name: Build release APK
35-
run: ./gradlew assemblecomoresDevDebug
33+
- name: Build with Gradle
34+
run: |
35+
./gradlew clean
36+
./gradlew assembleComoresDevRelease --stacktrace --info
3637
env:
38+
KEYSTORE_FILE: policies_comores.jks
3739
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
3840
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
3941
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
4042

41-
- name: Rename APK
42-
run: mv app/build/outputs/apk/comoresDev/debug/app-comoresDev-debug.apk claims-comores-test.apk
43-
44-
- name: List APK files
45-
run: ls -l claims-comores-test.apk
43+
- name: Debug APK location
44+
run: |
45+
echo "=== Listing all APK files ==="
46+
find app/build/outputs -name "*.apk" -exec ls -lh {} \; || echo "No APK files found"
47+
48+
echo "=== Expected path content ==="
49+
ls -lh app/build/outputs/apk/comoresDev/release/ || echo "Path not found"
4650
4751
- name: Upload APK
52+
if: success()
4853
uses: actions/upload-artifact@v4
4954
with:
50-
name: claims-comores-test.apk
51-
path: claims-comores-test.apk
55+
name: policies-comores-apk
56+
path: app/build/outputs/apk/**/*comoresDev*.apk
57+
if-no-files-found: error

0 commit comments

Comments
 (0)