Skip to content

Commit 0eb0af5

Browse files
committed
claims automatic build2
1 parent 1f2424b commit 0eb0af5

1 file changed

Lines changed: 16 additions & 22 deletions

File tree

.github/workflows/build.yml

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

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

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

1414
steps:
@@ -24,34 +24,28 @@ 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
2927
30-
- name: Grant execute permission to gradlew
31-
run: chmod +x gradlew
28+
- name: Set up Gradle
29+
uses: gradle/gradle-build-action@v2
30+
with:
31+
cache-disabled: true
3232

33-
- name: Build with Gradle
34-
run: |
35-
./gradlew clean
36-
./gradlew assembleComoresDevRelease --stacktrace --info
33+
34+
- name: Build release APK
35+
run: ./gradlew assemblecomoresDevDebug
3736
env:
38-
KEYSTORE_FILE: policies_comores.jks
3937
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
4038
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
4139
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
4240

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"
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
5046

5147
- name: Upload APK
52-
if: success()
5348
uses: actions/upload-artifact@v4
5449
with:
55-
name: policies-comores-apk
56-
path: app/build/outputs/apk/**/*comoresDev*.apk
57-
if-no-files-found: error
50+
name: claims-comores-test.apk
51+
path: claims-comores-test.apk

0 commit comments

Comments
 (0)