Skip to content

Commit

Permalink
Update .gitlab-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
saulhdev committed Aug 3, 2024
1 parent a7675e4 commit e76a2ec
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,23 @@ build:
- .gradle/wrapper
artifacts:
paths:
- app/build/outputs/
- app/build/outputs/*.apk
expire_in:
1 week

before_script:
- echo $KEYSTORE_FILE | base64 -d > keystore.jks
- echo $KEYSTORE_FILE | xxd -r -p - > keystore.jks
- echo -e "storePassword=$KEYSTORE_PASSWORD\nkeyPassword=$KEY_PASSWORD\nkeyAlias=$KEY_ALIAS\nstoreFile=keystore.jks" > keystore.properties
- chmod +x gradlew
- ./gradlew signingConfig

after_script:
- ls ../../../ -R
- ARTIFACT_PATHNAME_APK=$(ls app/build/outputs/*.apk | head -n 1)
- ARTIFACT_NAME_APK=basename $ARTIFACT_PATHNAME_APK
- echo "ARTIFACT_NAME_APK is $ARTIFACT_NAME_APK"
- echo "ARTIFACT_PATHNAME_APK=$ARTIFACT_PATHNAME_APK" >> $CI_JOB_ENV
- echo "ARTIFACT_NAME_APK=$ARTIFACT_NAME_APK" >> $CI_JOB_ENV
- rm -f keystore.jks || true
#- ARTIFACT_PATHNAME_APK=$(ls app/build/outputs/*.apk | head -n 1)
#- ARTIFACT_NAME_APK=basename $ARTIFACT_PATHNAME_APK
#- echo "ARTIFACT_NAME_APK is $ARTIFACT_NAME_APK"
#- echo "ARTIFACT_PATHNAME_APK=$ARTIFACT_PATHNAME_APK" >> $CI_JOB_ENV
#- echo "ARTIFACT_NAME_APK=$ARTIFACT_NAME_APK" >> $CI_JOB_ENV

deploy:
stage: deploy
Expand Down

0 comments on commit e76a2ec

Please sign in to comment.