Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

Commit

Permalink
[chore] Update app-distribution-ci-cd.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
moondev03 authored Aug 4, 2024
1 parent d49823e commit ff386c8
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/app-distribution-ci-cd.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Build & upload to Firebase App Distribution
name: Build & Upload to Firebase App Distribution

on:
push:
branches: [ develop ]
pull_request:
branches:
- develop
workflow_dispatch:
workflow_dispatch: # ์ˆ˜๋™ ์‹คํ–‰ ์˜ต์…˜

jobs:
build:
Expand Down Expand Up @@ -35,14 +35,25 @@ jobs:
- name: Verify keystore
run: |
ls -alh ./Nabi/presentation/
keytool -list -v -keystore ./Nabi/presentation/keystore.jks || echo "Keystore verification failed"
echo "Checking JKS format..."
keytool -list -v -keystore ./Nabi/presentation/keystore.jks -storetype JKS || echo "JKS format verification failed"
echo "Checking PKCS12 format..."
keytool -list -v -keystore ./Nabi/presentation/keystore.jks -storetype PKCS12 || echo "PKCS12 format verification failed"
- name: Convert keystore to JKS if necessary
run: |
# Check if keystore is PKCS12 format and convert to JKS if needed
if keytool -list -v -keystore ./Nabi/presentation/keystore.jks -storetype PKCS12 > /dev/null 2>&1; then
echo "Converting PKCS12 keystore to JKS..."
keytool -importkeystore -srckeystore ./Nabi/presentation/keystore.jks -srcstoretype PKCS12 -destkeystore ./Nabi/presentation/keystore.jks -deststoretype JKS
fi
- name: Create google-services.json
run: echo "$GOOGLE_SERVICES_JSON" > ./Nabi/presentation/google-services.json

- name: Create local.properties
run: |
echo "$LOCAL_PROPERTIES_CONTENTS" > ./Nabi/local.properties
run: echo "$LOCAL_PROPERTIES_CONTENTS" > ./Nabi/local.properties

- name: Build release APK
run: |
Expand Down

0 comments on commit ff386c8

Please sign in to comment.