Skip to content

Commit

Permalink
[FIX/#178] KeyStore 경로 app 모듈 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
Marchbreeze committed Nov 30, 2024
1 parent bddf0c5 commit c3f9a25
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/firebase_distribution_builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,31 +57,20 @@ jobs:
env:
keystore_file: ${{ secrets.KEYSTORE_FILE }}
run: |
mkdir -p .keystore
echo "$keystore_file" > .keystore/gentiKeyStore.b64
base64 -d -i .keystore/gentiKeyStore.b64 > .keystore/gentiKeyStore.jks
echo "$keystore_file" > app/gentiKeyStore.b64
base64 -d -i app/gentiKeyStore.b64 > app/gentiKeyStore.jks
- name: Access Keystore Properties
env:
store_password: ${{ secrets.STORE_PASSWORD }}
key_password: ${{ secrets.KEY_PASSWORD }}
key_alias: ${{ secrets.KEY_ALIAS }}
run: |
echo "storeFile=.keystore/gentiKeyStore.jks" > keystore.properties
echo "storeFile=gentiKeyStore.jks" > keystore.properties
echo "storePassword=\"$store_password\"" >> keystore.properties
echo "keyAlias=\"$key_alias\"" >> keystore.properties
echo "keyPassword=\"$key_password\"" >> keystore.properties
- name: Verify keystore and properties
run: |
ls -la app/
cat keystore.properties
keytool -list -keystore .keystore/gentiKeyStore.jks -storepass ${{ secrets.STORE_PASSWORD }}
keytool -exportcert -keystore .keystore/gentiKeyStore.jks \
-storepass ${{ secrets.STORE_PASSWORD }} \
-keypass ${{ secrets.KEY_PASSWORD }} \
-alias ${{ secrets.KEY_ALIAS }} -rfc -file /dev/null
- name: Access Firebase Service
run: echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > ./app/google-services.json

Expand Down

0 comments on commit c3f9a25

Please sign in to comment.